Class: BestBuy::CollectionHeader

Inherits:
Object
  • Object
show all
Defined in:
lib/best_buy/models/collection_header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject (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_pageObject (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

#fromObject (readonly)

Returns the value of attribute from.



5
6
7
# File 'lib/best_buy/models/collection_header.rb', line 5

def from
  @from
end

#partialObject (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_timeObject (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

#toObject (readonly)

Returns the value of attribute to.



5
6
7
# File 'lib/best_buy/models/collection_header.rb', line 5

def to
  @to
end

#totalObject (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_pagesObject (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_timeObject (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