Class: Google::Apis::BloggerV2::PostList

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostList

Returns a new instance of PostList.



1078
1079
1080
# File 'lib/google/apis/blogger_v2/classes.rb', line 1078

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

Instance Attribute Details

#etagString

Etag of the response. Corresponds to the JSON property etag

Returns:

  • (String)


1056
1057
1058
# File 'lib/google/apis/blogger_v2/classes.rb', line 1056

def etag
  @etag
end

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

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

Returns:



1061
1062
1063
# File 'lib/google/apis/blogger_v2/classes.rb', line 1061

def items
  @items
end

#kindString

The kind of this entity. Always blogger#postList. Corresponds to the JSON property kind

Returns:

  • (String)


1066
1067
1068
# File 'lib/google/apis/blogger_v2/classes.rb', line 1066

def kind
  @kind
end

#next_page_tokenString

Pagination token to fetch the next page, if one exists. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1071
1072
1073
# File 'lib/google/apis/blogger_v2/classes.rb', line 1071

def next_page_token
  @next_page_token
end

#prev_page_tokenString

Pagination token to fetch the previous page, if one exists. Corresponds to the JSON property prevPageToken

Returns:

  • (String)


1076
1077
1078
# File 'lib/google/apis/blogger_v2/classes.rb', line 1076

def prev_page_token
  @prev_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1083
1084
1085
1086
1087
1088
1089
# File 'lib/google/apis/blogger_v2/classes.rb', line 1083

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token)
end