class Io::Flow::V0::Models::HolidayCalendar
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21204 def HolidayCalendar.ALL @@all ||= [HolidayCalendar.us_bank_holidays, HolidayCalendar.jewish_holidays] end
apply(value)
click to toggle source
Returns the instance of HolidayCalendar
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 21189 def HolidayCalendar.apply(value) if value.instance_of?(HolidayCalendar) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || HolidayCalendar.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of HolidayCalendar
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 21199 def HolidayCalendar.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) HolidayCalendar.ALL.find { |v| v.value == value } end
jewish_holidays()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21212 def HolidayCalendar.jewish_holidays @@_jewish_holidays ||= HolidayCalendar.new('jewish_holidays') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21184 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
us_bank_holidays()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21208 def HolidayCalendar.us_bank_holidays @@_us_bank_holidays ||= HolidayCalendar.new('us_bank_holidays') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21216 def to_hash value end