Class: Io::Flow::V0::Models::EmailNotificationDataUndefinedType

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

Instance Attribute Summary collapse

Attributes inherited from EmailNotificationData

#discriminator

Instance Method Summary collapse

Methods inherited from EmailNotificationData

from_json

Constructor Details

#initialize(incoming = {}) ⇒ EmailNotificationDataUndefinedType

Returns a new instance of EmailNotificationDataUndefinedType.



8685
8686
8687
8688
8689
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8685

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

#nameObject (readonly)

Returns the value of attribute name.



8683
8684
8685
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8683

def name
  @name
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



8695
8696
8697
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8695

def copy(incoming={})
  raise 'Operation not supported for undefined type'
end

#subtype_to_hashObject



8691
8692
8693
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8691

def subtype_to_hash
  raise 'Unable to serialize undefined type to json'
end

#to_hashObject



8699
8700
8701
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 8699

def to_hash
  raise 'Operation not supported for undefined type'
end