class Io::Flow::Reference::V0::Models::Timezone
Time zone data is provided by the public IANA time zone database. See www.iana.org/time-zones
Attributes
description[R]
name[R]
offset[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_reference_v0_client.rb, line 884 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:name, :description, :offset], 'Timezone') @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String) @description = HttpClient::Preconditions.assert_class('description', opts.delete(:description), String) @offset = HttpClient::Preconditions.assert_class('offset', opts.delete(:offset), Integer) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_reference_v0_client.rb, line 896 def copy(incoming={}) Timezone.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_reference_v0_client.rb, line 900 def to_hash { :name => name, :description => description, :offset => offset } end
to_json()
click to toggle source
# File lib/flow_reference_v0_client.rb, line 892 def to_json JSON.dump(to_hash) end