Class: ThreeScaleToolbox::CRD::ProductParser::Limit

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



9
10
11
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 9

def backend_system_name
  @backend_system_name
end

#metric_system_nameObject

Returns the value of attribute metric_system_name

Returns:

  • (Object)

    the current value of metric_system_name



9
10
11
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 9

def metric_system_name
  @metric_system_name
end

#periodObject

Returns the value of attribute period

Returns:

  • (Object)

    the current value of period



9
10
11
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 9

def period
  @period
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



9
10
11
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 9

def value
  @value
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/3scale_toolbox/crds/product_parser.rb', line 10

def to_s
  {period: period, value: value}.to_json
end