Class: Io::Flow::V0::Models::UnitOfMeasurement

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ UnitOfMeasurement

Returns a new instance of UnitOfMeasurement.



8610
8611
8612
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8610

def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end

Instance Attribute Details

#value ⇒ Object (readonly)

Returns the value of attribute value.



8608
8609
8610
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8608

def value
  @value
end

Instance Method Details

#to_hash ⇒ Object



8689
8690
8691
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8689

def to_hash
  value
end