Class: Basecamp::Types::Preferences
- Inherits:
-
Object
- Object
- Basecamp::Types::Preferences
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
Preferences
Instance Attribute Summary collapse
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#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.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Preferences
constructor
A new instance of Preferences.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ Preferences
Returns a new instance of Preferences.
2857 2858 2859 2860 2861 2862 2863 |
# File 'lib/basecamp/generated/types.rb', line 2857 def initialize(data = {}) @app_url = data["app_url"] @first_week_day = data["first_week_day"] @time_format = data["time_format"] @time_zone_name = data["time_zone_name"] @url = data["url"] end |
Instance Attribute Details
#app_url ⇒ Object
Returns the value of attribute app_url.
2855 2856 2857 |
# File 'lib/basecamp/generated/types.rb', line 2855 def app_url @app_url end |
#first_week_day ⇒ Object
Returns the value of attribute first_week_day.
2855 2856 2857 |
# File 'lib/basecamp/generated/types.rb', line 2855 def first_week_day @first_week_day end |
#time_format ⇒ Object
Returns the value of attribute time_format.
2855 2856 2857 |
# File 'lib/basecamp/generated/types.rb', line 2855 def time_format @time_format end |
#time_zone_name ⇒ Object
Returns the value of attribute time_zone_name.
2855 2856 2857 |
# File 'lib/basecamp/generated/types.rb', line 2855 def time_zone_name @time_zone_name end |
#url ⇒ Object
Returns the value of attribute url.
2855 2856 2857 |
# File 'lib/basecamp/generated/types.rb', line 2855 def url @url end |
Instance Method Details
#to_h ⇒ Object
2865 2866 2867 2868 2869 2870 2871 2872 2873 |
# File 'lib/basecamp/generated/types.rb', line 2865 def to_h { "app_url" => @app_url, "first_week_day" => @first_week_day, "time_format" => @time_format, "time_zone_name" => @time_zone_name, "url" => @url, }.compact end |
#to_json(*args) ⇒ Object
2875 2876 2877 |
# File 'lib/basecamp/generated/types.rb', line 2875 def to_json(*args) to_h.to_json(*args) end |