Class: BestBuy::CollectionHeader
- Inherits:
-
Object
- Object
- BestBuy::CollectionHeader
- Defined in:
- lib/best_buy/models/collection_header.rb
Instance Attribute Summary collapse
-
#canonical_url ⇒ Object
readonly
Returns the value of attribute canonical_url.
-
#current_page ⇒ Object
readonly
Returns the value of attribute current_page.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#partial ⇒ Object
readonly
Returns the value of attribute partial.
-
#query_time ⇒ Object
readonly
Returns the value of attribute query_time.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
-
#total_pages ⇒ Object
readonly
Returns the value of attribute total_pages.
-
#total_time ⇒ Object
readonly
Returns the value of attribute total_time.
Instance Method Summary collapse
-
#initialize(init_params) ⇒ CollectionHeader
constructor
A new instance of CollectionHeader.
Constructor Details
#initialize(init_params) ⇒ CollectionHeader
Returns a new instance of CollectionHeader.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/best_buy/models/collection_header.rb', line 8 def initialize(init_params) @canonical_url = init_params[:canonical_url] @current_page = init_params[:current_page] @from = init_params[:from] @partial = init_params[:partial] @query_time = init_params[:query_time] @to = init_params[:to] @total = init_params[:total] @total_pages = init_params[:total_pages] @total_time = init_params[:total_time] end |
Instance Attribute Details
#canonical_url ⇒ Object (readonly)
Returns the value of attribute canonical_url.
5 6 7 |
# File 'lib/best_buy/models/collection_header.rb', line 5 def canonical_url @canonical_url end |
#current_page ⇒ Object (readonly)
Returns the value of attribute current_page.
5 6 7 |
# File 'lib/best_buy/models/collection_header.rb', line 5 def current_page @current_page end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
5 6 7 |
# File 'lib/best_buy/models/collection_header.rb', line 5 def from @from end |
#partial ⇒ Object (readonly)
Returns the value of attribute partial.
5 6 7 |
# File 'lib/best_buy/models/collection_header.rb', line 5 def partial @partial end |
#query_time ⇒ Object (readonly)
Returns the value of attribute query_time.
5 6 7 |
# File 'lib/best_buy/models/collection_header.rb', line 5 def query_time @query_time end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
5 6 7 |
# File 'lib/best_buy/models/collection_header.rb', line 5 def to @to end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
5 6 7 |
# File 'lib/best_buy/models/collection_header.rb', line 5 def total @total end |
#total_pages ⇒ Object (readonly)
Returns the value of attribute total_pages.
5 6 7 |
# File 'lib/best_buy/models/collection_header.rb', line 5 def total_pages @total_pages end |
#total_time ⇒ Object (readonly)
Returns the value of attribute total_time.
5 6 7 |
# File 'lib/best_buy/models/collection_header.rb', line 5 def total_time @total_time end |