# Objects

### A**nnouncement**

```ruby
{{ announcement.id }}
{{ announcement.title }}
{{ announcement.body }}
{{ announcement.created_at }}
{{ announcement.updated_at }}
```

### **Blog Post**

```ruby
{{ blog_post.id }}
{{ blog_post.title }}
{{ blog_post.content }}
{{ blog_post.image_url }}
{{ blog_post.created_at }}
{{ blog_post.url}}
{{ blog_post.tags | join: ', ' }}
```

### **Category**

```ruby
{{ category.id }}
{{ category.title }}
{{ category.description }}
{{ category.poster_image_url }}
{{ category.created_at }}
{{ product.updated_at }}
{{ category.subcategories }}
{{ category.product }}
{{ category.children? }}
{{ category.nested? }}
```

### **Comment**

```ruby
{{ comment.id }}
{{ comment.author }}
{{ comment.body }}
```

### **Completion**

```ruby
{{ completion.completed }}
{{ completion.total }}
{{ completion.percent }}
{{ completion.next_post }}
```

### **Download**

```ruby
{{ download.id }}
{{ download.display_name }}
{{ download.url }}
{{ download.extension }}
```

### **Form**

{% code title="" %}

```groovy
{{ form.id }}
{{ form.title }}

<div data-gb-custom-block data-tag="assign"></div>

<div data-gb-custom-block data-tag="form">

  

<div data-gb-custom-block data-tag="for"></div>

  {{ field | form_input: class: "form-group", input_class: "form-control", label: true, placeholder: false }}

</div>

```

{% endcode %}

### **Offer**

```ruby
{{ offer.id }}
{{ offer.image_url }}
{{ offer.description }}
{{ offer.title }}
{{ offer.thank_you_body }}
```

### **Page**

```ruby
{{ page.id }}
{{ page.title }}
{{ page.content }}
```

### **Paginate**

```ruby
{{ paginate.collection }}
{{ paginate.current_page }}
{{ paginate.current_offset }}
{{ paginate.items }}
{{ paginate.page_size }}
{{ paginate.pages }}
{{ paginate.parts }}
{{ paginate.previous }}
{{ paginate.next }}
```

### **Post**

```ruby
{{ post.id }}
{{ post.title }}
{{ post.url }}
{{ post.poster_image_url }}"
{{ post.body }}
{{ post.product }}
{{ post.category }}
{{ post.comments }}
{{ post.comments_mode_visible? }}
{{ post.comments_mode_hidden? }}
{{ post.comments_mode_locked? }}
```

### **Product**

```ruby
{{ product.id }}
{{ product.title }}
{{ product.url }}
{{ product.description }}
{{ product.thumbnail_url }}
{{ product.created_at }}
{{ product.updated_at }}
{{ product.categories_url }}
{{ product.completion }}
{{ product.categories }}
{{ product.announcements }}
```

### **Current Site**

```ruby
{{ current_site.id }}
{{ current_site.title }}
{{ current_site.url }}
{{ current_site.products }}
{{ current_site.login_url }}
{{ current_site.logout_url }}
{{ current_site.library_url }}
{{ current_site.google_analytics_script }}
```

### **Video**

```ruby
{{ post.video | wistia_video: controls_visible_on_load: false, autoplay: true }}
```

or

```groovy

<div data-gb-custom-block data-tag="assign"></div>

<div data-gb-custom-block data-tag="assign" data-0='video.png' data-1='video.png' data-2='video.png' data-3='video.png' data-4='video.png'></div>

<div data-gb-custom-block data-tag="assign"></div>

<div data-gb-custom-block data-tag="assign"></div>
{{ v | wistia_video: player_color: v-Color, auto_play: v-Auto, still_url: v-Image, playerPreference: "html5" }}
```
