Class: Io::Flow::V0::Models::InvitationAcceptsForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::InvitationAcceptsForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ InvitationAcceptsForm
constructor
A new instance of InvitationAcceptsForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ InvitationAcceptsForm
Returns a new instance of InvitationAcceptsForm.
12712 12713 12714 12715 12716 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12712 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:user_id], 'InvitationAcceptsForm') @user_id = HttpClient::Preconditions.assert_class('user_id', opts.delete(:user_id), String) end |
Instance Attribute Details
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
12710 12711 12712 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12710 def user_id @user_id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
12722 12723 12724 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12722 def copy(incoming={}) InvitationAcceptsForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
12726 12727 12728 12729 12730 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12726 def to_hash { :user_id => user_id } end |
#to_json ⇒ Object
12718 12719 12720 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12718 def to_json JSON.dump(to_hash) end |