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.
2409 2410 2411 2412 2413 |
# File 'lib/basecamp/generated/types.rb', line 2409 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.
2407 2408 2409 |
# File 'lib/basecamp/generated/types.rb', line 2407 def first_week_day @first_week_day end |
#time_format ⇒ Object
Returns the value of attribute time_format.
2407 2408 2409 |
# File 'lib/basecamp/generated/types.rb', line 2407 def time_format @time_format end |
#time_zone_name ⇒ Object
Returns the value of attribute time_zone_name.
2407 2408 2409 |
# File 'lib/basecamp/generated/types.rb', line 2407 def time_zone_name @time_zone_name end |
Instance Method Details
#to_h ⇒ Object
2415 2416 2417 2418 2419 2420 2421 |
# File 'lib/basecamp/generated/types.rb', line 2415 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
2423 2424 2425 |
# File 'lib/basecamp/generated/types.rb', line 2423 def to_json(*args) to_h.to_json(*args) end |