Class: ThreeScaleToolbox::CRD::ProductParser::PricingRule

Inherits:
Struct
  • Object
show all
Defined in:
lib/3scale_toolbox/crds/product_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backend_system_nameObject

Returns the value of attribute backend_system_name

Returns:

  • (Object)

    the current value of backend_system_name



14
15
16
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 14

def backend_system_name
  @backend_system_name
end

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



14
15
16
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 14

def from
  @from
end

#metric_system_nameObject

Returns the value of attribute metric_system_name

Returns:

  • (Object)

    the current value of 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_unitObject

Returns the value of attribute price_per_unit

Returns:

  • (Object)

    the current value of price_per_unit



14
15
16
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 14

def price_per_unit
  @price_per_unit
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



14
15
16
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 14

def to
  @to
end

Instance Method Details

#to_sObject



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