Class: Google::Apis::WalletobjectsV1::Pagination

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Pagination

Returns a new instance of Pagination.



6965
6966
6967
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6965

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

Instance Attribute Details

#kindString

Identifies what kind of resource this is. Value: the fixed string " walletobjects#pagination". Corresponds to the JSON property kind

Returns:

  • (String)


6953
6954
6955
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6953

def kind
  @kind
end

#next_page_tokenString

Page token to send to fetch the next page. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


6958
6959
6960
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6958

def next_page_token
  @next_page_token
end

#results_per_pageFixnum

Number of results returned in this page. Corresponds to the JSON property resultsPerPage

Returns:

  • (Fixnum)


6963
6964
6965
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6963

def results_per_page
  @results_per_page
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6970
6971
6972
6973
6974
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6970

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