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.
23634 23635 23636 23637 23638 23639 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23634 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.
23632 23633 23634 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23632 def email @email end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
23645 23646 23647 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23645 def copy(incoming={}) ExportDeliveryEmail.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
23649 23650 23651 23652 23653 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23649 def subtype_to_hash { :email => email } end |
#to_json ⇒ Object
23641 23642 23643 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23641 def to_json JSON.dump(to_hash) end |