class Io::Flow::V0::Models::OrganizationTokenFormV2
Attributes
description[R]
organization_id[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 55563 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:organization_id], 'OrganizationTokenFormV2') @organization_id = HttpClient::Preconditions.assert_class('organization_id', opts.delete(:organization_id), String) @description = (x = opts.delete(:description); x.nil? ? nil : HttpClient::Preconditions.assert_class('description', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 55574 def copy(incoming={}) OrganizationTokenFormV2.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 55578 def to_hash { :organization_id => organization_id, :description => description } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 55570 def to_json JSON.dump(to_hash) end