Class: Amazon::SalesRankMetrics::Row
- Inherits:
-
Data
- Object
- Data
- Amazon::SalesRankMetrics::Row
- Defined in:
- app/services/amazon/sales_rank_metrics.rb
Instance Attribute Summary collapse
-
#amazon_url ⇒ Object
readonly
Returns the value of attribute amazon_url.
-
#asin ⇒ Object
readonly
Returns the value of attribute asin.
-
#catalog_item_id ⇒ Object
readonly
Returns the value of attribute catalog_item_id.
-
#category_id ⇒ Object
readonly
Returns the value of attribute category_id.
-
#category_kind ⇒ Object
readonly
Returns the value of attribute category_kind.
-
#category_name ⇒ Object
readonly
Returns the value of attribute category_name.
-
#change_30_days ⇒ Object
readonly
Returns the value of attribute change_30_days.
-
#current_rank ⇒ Object
readonly
Returns the value of attribute current_rank.
-
#item_id ⇒ Object
readonly
Returns the value of attribute item_id.
-
#observed_at ⇒ Object
readonly
Returns the value of attribute observed_at.
-
#observed_on ⇒ Object
readonly
Returns the value of attribute observed_on.
-
#points ⇒ Object
readonly
Returns the value of attribute points.
-
#sku ⇒ Object
readonly
Returns the value of attribute sku.
Instance Method Summary collapse
-
#chart_name ⇒ Object
rubocop:enable Metrics/ParameterLists.
-
#initialize(catalog_item_id: nil, item_id: nil, sku: nil, asin: nil, amazon_url: nil, category_kind: nil, category_id: nil, category_name: nil, current_rank: nil, observed_on: nil, observed_at: nil, change_30_days: nil, points: []) ⇒ Row
constructor
Mirrors the immutable row contract one-for-one.
Constructor Details
#initialize(catalog_item_id: nil, item_id: nil, sku: nil, asin: nil, amazon_url: nil, category_kind: nil, category_id: nil, category_name: nil, current_rank: nil, observed_on: nil, observed_at: nil, change_30_days: nil, points: []) ⇒ Row
Mirrors the immutable row contract one-for-one.
rubocop:disable Metrics/ParameterLists
35 36 37 38 39 40 41 42 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 35 def initialize( catalog_item_id: nil, item_id: nil, sku: nil, asin: nil, amazon_url: nil, category_kind: nil, category_id: nil, category_name: nil, current_rank: nil, observed_on: nil, observed_at: nil, change_30_days: nil, points: [] ) super end |
Instance Attribute Details
#amazon_url ⇒ Object (readonly)
Returns the value of attribute amazon_url
18 19 20 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 18 def amazon_url @amazon_url end |
#asin ⇒ Object (readonly)
Returns the value of attribute asin
18 19 20 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 18 def asin @asin end |
#catalog_item_id ⇒ Object (readonly)
Returns the value of attribute catalog_item_id
18 19 20 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 18 def catalog_item_id @catalog_item_id end |
#category_id ⇒ Object (readonly)
Returns the value of attribute category_id
18 19 20 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 18 def category_id @category_id end |
#category_kind ⇒ Object (readonly)
Returns the value of attribute category_kind
18 19 20 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 18 def category_kind @category_kind end |
#category_name ⇒ Object (readonly)
Returns the value of attribute category_name
18 19 20 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 18 def category_name @category_name end |
#change_30_days ⇒ Object (readonly)
Returns the value of attribute change_30_days
18 19 20 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 18 def change_30_days @change_30_days end |
#current_rank ⇒ Object (readonly)
Returns the value of attribute current_rank
18 19 20 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 18 def current_rank @current_rank end |
#item_id ⇒ Object (readonly)
Returns the value of attribute item_id
18 19 20 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 18 def item_id @item_id end |
#observed_at ⇒ Object (readonly)
Returns the value of attribute observed_at
18 19 20 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 18 def observed_at @observed_at end |
#observed_on ⇒ Object (readonly)
Returns the value of attribute observed_on
18 19 20 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 18 def observed_on @observed_on end |
#points ⇒ Object (readonly)
Returns the value of attribute points
18 19 20 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 18 def points @points end |
#sku ⇒ Object (readonly)
Returns the value of attribute sku
18 19 20 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 18 def sku @sku end |
Instance Method Details
#chart_name ⇒ Object
rubocop:enable Metrics/ParameterLists
45 46 47 |
# File 'app/services/amazon/sales_rank_metrics.rb', line 45 def chart_name "#{sku} — #{category_name}" end |