Class: Basecamp::Types::PreferencesPayload
- Inherits:
-
Object
- Object
- Basecamp::Types::PreferencesPayload
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
PreferencesPayload
Instance Attribute Summary collapse
-
#first_week_day ⇒ Object
Returns the value of attribute first_week_day.
-
#time_format ⇒ Object
Returns the value of attribute time_format.
-
#time_zone_name ⇒ Object
Returns the value of attribute time_zone_name.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ PreferencesPayload
constructor
A new instance of PreferencesPayload.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ PreferencesPayload
Returns a new instance of PreferencesPayload.
3114 3115 3116 3117 3118 |
# File 'lib/basecamp/generated/types.rb', line 3114 def initialize(data = {}) @first_week_day = data["first_week_day"] @time_format = data["time_format"] @time_zone_name = data["time_zone_name"] end |
Instance Attribute Details
#first_week_day ⇒ Object
Returns the value of attribute first_week_day.
3112 3113 3114 |
# File 'lib/basecamp/generated/types.rb', line 3112 def first_week_day @first_week_day end |
#time_format ⇒ Object
Returns the value of attribute time_format.
3112 3113 3114 |
# File 'lib/basecamp/generated/types.rb', line 3112 def time_format @time_format end |
#time_zone_name ⇒ Object
Returns the value of attribute time_zone_name.
3112 3113 3114 |
# File 'lib/basecamp/generated/types.rb', line 3112 def time_zone_name @time_zone_name end |
Instance Method Details
#to_h ⇒ Object
3120 3121 3122 3123 3124 3125 3126 |
# File 'lib/basecamp/generated/types.rb', line 3120 def to_h { "first_week_day" => @first_week_day, "time_format" => @time_format, "time_zone_name" => @time_zone_name, }.compact end |
#to_json(*args) ⇒ Object
3128 3129 3130 |
# File 'lib/basecamp/generated/types.rb', line 3128 def to_json(*args) to_h.to_json(*args) end |