class Io::Flow::V0::Models::Name
Attributes
first[R]
last[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50576 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @first = (x = opts.delete(:first); x.nil? ? nil : HttpClient::Preconditions.assert_class('first', x, String)) @last = (x = opts.delete(:last); x.nil? ? nil : HttpClient::Preconditions.assert_class('last', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50586 def copy(incoming={}) Name.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 50590 def to_hash { :first => first, :last => last } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50582 def to_json JSON.dump(to_hash) end