Class: Io::Flow::V0::Models::ExportDeliveryEmail
- Inherits:
-
ExportDelivery
- Object
- ExportDelivery
- Io::Flow::V0::Models::ExportDeliveryEmail
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Triggers an email notification once the requested export is ready
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
Attributes inherited from ExportDelivery
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ExportDeliveryEmail
constructor
A new instance of ExportDeliveryEmail.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from ExportDelivery
Constructor Details
#initialize(incoming = {}) ⇒ ExportDeliveryEmail
Returns a new instance of ExportDeliveryEmail.
42854 42855 42856 42857 42858 42859 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42854 def initialize(incoming={}) super(:discriminator => ExportDelivery::Types::EXPORT_DELIVERY_EMAIL) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:email], 'ExportDeliveryEmail') @email = HttpClient::Preconditions.assert_class('email', opts.delete(:email), String) end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
42852 42853 42854 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42852 def email @email end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
42865 42866 42867 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42865 def copy(incoming={}) ExportDeliveryEmail.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
42869 42870 42871 42872 42873 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42869 def subtype_to_hash { :email => email } end |
#to_json ⇒ Object
42861 42862 42863 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42861 def to_json JSON.dump(to_hash) end |