Class: Io::Flow::V0::Models::AvailablePromotionUndefinedType
- Inherits:
-
AvailablePromotion
- Object
- AvailablePromotion
- Io::Flow::V0::Models::AvailablePromotionUndefinedType
- 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 AvailablePromotion
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ AvailablePromotionUndefinedType
constructor
A new instance of AvailablePromotionUndefinedType.
- #subtype_to_hash ⇒ Object
- #to_hash ⇒ Object
Methods inherited from AvailablePromotion
Constructor Details
#initialize(incoming = {}) ⇒ AvailablePromotionUndefinedType
Returns a new instance of AvailablePromotionUndefinedType.
4294 4295 4296 4297 4298 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4294 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.
4292 4293 4294 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4292 def name @name end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
4304 4305 4306 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4304 def copy(incoming={}) raise 'Operation not supported for undefined type' end |
#subtype_to_hash ⇒ Object
4300 4301 4302 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4300 def subtype_to_hash raise 'Unable to serialize undefined type to json' end |
#to_hash ⇒ Object
4308 4309 4310 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4308 def to_hash raise 'Operation not supported for undefined type' end |