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.
32460 32461 32462 32463 32464 32465 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32460 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.
32458 32459 32460 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32458 def email @email end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
32471 32472 32473 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32471 def copy(incoming={}) ExportDeliveryEmail.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
32475 32476 32477 32478 32479 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32475 def subtype_to_hash { :email => email } end |
#to_json ⇒ Object
32467 32468 32469 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32467 def to_json JSON.dump(to_hash) end |