Class: Io::Flow::V0::Models::PriceSourceUndefinedType
- Inherits:
-
PriceSource
- Object
- PriceSource
- Io::Flow::V0::Models::PriceSourceUndefinedType
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from PriceSource
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PriceSourceUndefinedType
constructor
A new instance of PriceSourceUndefinedType.
- #subtype_to_hash ⇒ Object
- #to_hash ⇒ Object
Methods inherited from PriceSource
Constructor Details
#initialize(incoming = {}) ⇒ PriceSourceUndefinedType
Returns a new instance of PriceSourceUndefinedType.
9978 9979 9980 9981 9982 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9978 def initialize(incoming={}) super(:discriminator => 'undefined_type') opts = HttpClient::Helper.symbolize_keys(incoming) @name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9976 9977 9978 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9976 def name @name end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
9988 9989 9990 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9988 def copy(incoming={}) raise 'Operation not supported for undefined type' end |
#subtype_to_hash ⇒ Object
9984 9985 9986 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9984 def subtype_to_hash raise 'Unable to serialize undefined type to json' end |
#to_hash ⇒ Object
9992 9993 9994 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9992 def to_hash raise 'Operation not supported for undefined type' end |