Class: Google::Apis::BloggerV3::Blog::Posts

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/blogger_v3/classes.rb,
generated/google/apis/blogger_v3/representations.rb,
generated/google/apis/blogger_v3/representations.rb

Overview

The container of posts in this blog.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Posts

Returns a new instance of Posts.



190
191
192
# File 'generated/google/apis/blogger_v3/classes.rb', line 190

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#itemsArray<Google::Apis::BloggerV3::Post>

The List of Posts for this Blog. Corresponds to the JSON property items

Returns:



178
179
180
# File 'generated/google/apis/blogger_v3/classes.rb', line 178

def items
  @items
end

The URL of the container for posts in this blog. Corresponds to the JSON property selfLink

Returns:

  • (String)


183
184
185
# File 'generated/google/apis/blogger_v3/classes.rb', line 183

def self_link
  @self_link
end

#total_itemsFixnum

The count of posts in this blog. Corresponds to the JSON property totalItems

Returns:

  • (Fixnum)


188
189
190
# File 'generated/google/apis/blogger_v3/classes.rb', line 188

def total_items
  @total_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



195
196
197
198
199
# File 'generated/google/apis/blogger_v3/classes.rb', line 195

def update!(**args)
  @items = args[:items] if args.key?(:items)
  @self_link = args[:self_link] if args.key?(:self_link)
  @total_items = args[:total_items] if args.key?(:total_items)
end