Class: ClashOfClansApi::Models::PaginatedResponse

Inherits:
Base
  • Object
show all
Defined in:
lib/clash_of_clans_api/models/paginated_response.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#[], #cache_property, property, #property_cached?, #property_from_cache, registered_properties, #to_h, #validate!

Constructor Details

#initialize(item_type, hash, client) ⇒ PaginatedResponse

Returns a new instance of PaginatedResponse.



12
13
14
15
16
# File 'lib/clash_of_clans_api/models/paginated_response.rb', line 12

def initialize(item_type, hash, client)
	self.item_type = item_type
	
	super(hash, client)
end

Instance Attribute Details

#item_typeObject

Returns the value of attribute item_type.



7
8
9
# File 'lib/clash_of_clans_api/models/paginated_response.rb', line 7

def item_type
  @item_type
end