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.
11073 11074 11075 11076 11077 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11073 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.
11071 11072 11073 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11071 def user_id @user_id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
11083 11084 11085 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11083 def copy(incoming={}) InvitationAcceptsForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
11087 11088 11089 11090 11091 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11087 def to_hash { :user_id => user_id } end |
#to_json ⇒ Object
11079 11080 11081 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11079 def to_json JSON.dump(to_hash) end |