class Io::Flow::V0::Models::NameForm

Attributes

first[R]
last[R]

Public Class Methods

new(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50603
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 50613
def copy(incoming={})
  NameForm.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 50617
def to_hash
  {
    :first => first,
    :last => last
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50609
def to_json
  JSON.dump(to_hash)
end