Class: ThreeScaleToolbox::CRD::ProductParser::PricingRule
- Inherits:
-
Struct
- Object
- Struct
- ThreeScaleToolbox::CRD::ProductParser::PricingRule
- Defined in:
- lib/3scale_toolbox/crds/product_parser.rb
Instance Attribute Summary collapse
-
#backend_system_name ⇒ Object
Returns the value of attribute backend_system_name.
-
#from ⇒ Object
Returns the value of attribute from.
-
#metric_system_name ⇒ Object
Returns the value of attribute metric_system_name.
-
#price_per_unit ⇒ Object
Returns the value of attribute price_per_unit.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
Instance Attribute Details
#backend_system_name ⇒ Object
Returns the value of attribute backend_system_name
14 15 16 |
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 14 def backend_system_name @backend_system_name end |
#from ⇒ Object
Returns the value of attribute from
14 15 16 |
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 14 def from @from end |
#metric_system_name ⇒ Object
Returns the value of attribute metric_system_name
14 15 16 |
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 14 def metric_system_name @metric_system_name end |
#price_per_unit ⇒ Object
Returns the value of attribute price_per_unit
14 15 16 |
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 14 def price_per_unit @price_per_unit end |
#to ⇒ Object
Returns the value of attribute to
14 15 16 |
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 14 def to @to end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 15 def to_s {from: from, to: to, price_per_unit: price_per_unit}.to_json end |