class Io::Flow::V0::Models::OnboardingMerchantTime

Attributes

hour_of_day[R]
minute_of_hour[R]
timezone[R]

Public Class Methods

new(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50841
def initialize(incoming={})
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:hour_of_day, :minute_of_hour], 'OnboardingMerchantTime')
  @hour_of_day = HttpClient::Preconditions.assert_class('hour_of_day', opts.delete(:hour_of_day), String)
  @minute_of_hour = HttpClient::Preconditions.assert_class('minute_of_hour', opts.delete(:minute_of_hour), String)
  @timezone = (x = opts.delete(:timezone); x.nil? ? nil : HttpClient::Preconditions.assert_class('timezone', x, String))
end

Public Instance Methods

copy(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50853
def copy(incoming={})
  OnboardingMerchantTime.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 50857
def to_hash
  {
    :hour_of_day => hour_of_day,
    :minute_of_hour => minute_of_hour,
    :timezone => timezone
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 50849
def to_json
  JSON.dump(to_hash)
end