Class: Peddler::Reports::Promotion::DetailsByProduct

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/reports/promotion.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#asinString (readonly)

Returns the value of attribute asin.

Returns:

  • (String)


14
15
16
# File 'sig/peddler/reports/promotion.rbs', line 14

def asin
  @asin
end

#product_amount_spentFloat? (readonly)

Returns the value of attribute product_amount_spent.

Returns:

  • (Float, nil)


15
16
17
# File 'sig/peddler/reports/promotion.rbs', line 15

def product_amount_spent
  @product_amount_spent
end

#product_amount_spent_currency_codeString? (readonly)

Returns the value of attribute product_amount_spent_currency_code.

Returns:

  • (String, nil)


16
17
18
# File 'sig/peddler/reports/promotion.rbs', line 16

def product_amount_spent_currency_code
  @product_amount_spent_currency_code
end

#product_glance_viewsInteger? (readonly)

Returns the value of attribute product_glance_views.

Returns:

  • (Integer, nil)


17
18
19
# File 'sig/peddler/reports/promotion.rbs', line 17

def product_glance_views
  @product_glance_views
end

#product_nameString (readonly)

Returns the value of attribute product_name.

Returns:

  • (String)


18
19
20
# File 'sig/peddler/reports/promotion.rbs', line 18

def product_name
  @product_name
end

#product_revenueFloat (readonly)

Returns the value of attribute product_revenue.

Returns:

  • (Float)


19
20
21
# File 'sig/peddler/reports/promotion.rbs', line 19

def product_revenue
  @product_revenue
end

#product_revenue_currency_codeString (readonly)

Returns the value of attribute product_revenue_currency_code.

Returns:

  • (String)


20
21
22
# File 'sig/peddler/reports/promotion.rbs', line 20

def product_revenue_currency_code
  @product_revenue_currency_code
end

#product_units_soldInteger (readonly)

Returns the value of attribute product_units_sold.

Returns:

  • (Integer)


21
22
23
# File 'sig/peddler/reports/promotion.rbs', line 21

def product_units_sold
  @product_units_sold
end

Class Method Details

.[](asin:, product_name:, product_revenue:, product_revenue_currency_code:, product_units_sold:, product_amount_spent:, product_amount_spent_currency_code:, product_glance_views:) ⇒ Peddler::Reports::Promotion::DetailsByProduct .[](arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) ⇒ Peddler::Reports::Promotion::DetailsByProduct

Overloads:



7
8
# File 'sig/peddler/reports/promotion.rbs', line 7

def self.[]: (asin: String, product_name: String, product_revenue: Float, product_revenue_currency_code: String, product_units_sold: Integer, ?product_amount_spent: Float?, ?product_amount_spent_currency_code: String?, ?product_glance_views: Integer?) -> Peddler::Reports::Promotion::DetailsByProduct
| (String, String, Float, String, Integer, Float?, String?, Integer?) -> Peddler::Reports::Promotion::DetailsByProduct

.members[ :asin, :product_name, :product_revenue, :product_revenue_currency_code, :product_units_sold, :product_amount_spent, :product_amount_spent_currency_code, :product_glance_views ]

Returns:

  • ([ :asin, :product_name, :product_revenue, :product_revenue_currency_code, :product_units_sold, :product_amount_spent, :product_amount_spent_currency_code, :product_glance_views ])


10
# File 'sig/peddler/reports/promotion.rbs', line 10

def self.members: () -> [ :asin, :product_name, :product_revenue, :product_revenue_currency_code, :product_units_sold, :product_amount_spent, :product_amount_spent_currency_code, :product_glance_views ]

.new(asin:, product_name:, product_revenue:, product_revenue_currency_code:, product_units_sold:, product_amount_spent:, product_amount_spent_currency_code:, product_glance_views:) ⇒ Peddler::Reports::Promotion::DetailsByProduct .new(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) ⇒ Peddler::Reports::Promotion::DetailsByProduct

Overloads:



5
6
# File 'sig/peddler/reports/promotion.rbs', line 5

def self.new: (asin: String, product_name: String, product_revenue: Float, product_revenue_currency_code: String, product_units_sold: Integer, ?product_amount_spent: Float?, ?product_amount_spent_currency_code: String?, ?product_glance_views: Integer?) -> Peddler::Reports::Promotion::DetailsByProduct
| (String, String, Float, String, Integer, Float?, String?, Integer?) -> Peddler::Reports::Promotion::DetailsByProduct

.parsePeddler::Reports::Promotion::DetailsByProduct

Parameters:

  • (Hash[String | Symbol, untyped])
  • (Object)

Returns:



12
# File 'sig/peddler/reports/promotion.rbs', line 12

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Reports::Promotion::DetailsByProduct

Instance Method Details

#members[ :asin, :product_name, :product_revenue, :product_revenue_currency_code, :product_units_sold, :product_amount_spent, :product_amount_spent_currency_code, :product_glance_views ]

Returns:

  • ([ :asin, :product_name, :product_revenue, :product_revenue_currency_code, :product_units_sold, :product_amount_spent, :product_amount_spent_currency_code, :product_glance_views ])


23
# File 'sig/peddler/reports/promotion.rbs', line 23

def members: () -> [ :asin, :product_name, :product_revenue, :product_revenue_currency_code, :product_units_sold, :product_amount_spent, :product_amount_spent_currency_code, :product_glance_views ]

#to_h{ asin: String, product_name: String, product_revenue: Float, product_revenue_currency_code: String, product_units_sold: Integer, product_amount_spent: Float?, product_amount_spent_currency_code: String?, product_glance_views: Integer? }

Returns:

  • ({ asin: String, product_name: String, product_revenue: Float, product_revenue_currency_code: String, product_units_sold: Integer, product_amount_spent: Float?, product_amount_spent_currency_code: String?, product_glance_views: Integer? })


24
# File 'sig/peddler/reports/promotion.rbs', line 24

def to_h: () -> { asin: String, product_name: String, product_revenue: Float, product_revenue_currency_code: String, product_units_sold: Integer, product_amount_spent: Float?, product_amount_spent_currency_code: String?, product_glance_views: Integer? }