Class: Io::Flow::V0::Models::DocumentUndefinedType
- 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 Document
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ DocumentUndefinedType
constructor
A new instance of DocumentUndefinedType.
- #subtype_to_hash ⇒ Object
- #to_hash ⇒ Object
Methods inherited from Document
Constructor Details
#initialize(incoming = {}) ⇒ DocumentUndefinedType
Returns a new instance of DocumentUndefinedType.
9020 9021 9022 9023 9024 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9020 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.
9018 9019 9020 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9018 def name @name end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
9030 9031 9032 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9030 def copy(incoming={}) raise 'Operation not supported for undefined type' end |
#subtype_to_hash ⇒ Object
9026 9027 9028 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9026 def subtype_to_hash raise 'Unable to serialize undefined type to json' end |
#to_hash ⇒ Object
9034 9035 9036 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9034 def to_hash raise 'Operation not supported for undefined type' end |