Class: Io::Flow::V0::Models::PasswordResetRequestForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::PasswordResetRequestForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PasswordResetRequestForm
constructor
A new instance of PasswordResetRequestForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ PasswordResetRequestForm
Returns a new instance of PasswordResetRequestForm.
20520 20521 20522 20523 20524 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20520 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:email], 'PasswordResetRequestForm') @email = HttpClient::Preconditions.assert_class('email', opts.delete(:email), String) end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
20518 20519 20520 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20518 def email @email end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
20530 20531 20532 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20530 def copy(incoming={}) PasswordResetRequestForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
20534 20535 20536 20537 20538 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20534 def to_hash { :email => email } end |
#to_json ⇒ Object
20526 20527 20528 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20526 def to_json JSON.dump(to_hash) end |