Class: Basecamp::Types::AccountSettings
- Inherits:
-
Object
- Object
- Basecamp::Types::AccountSettings
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
AccountSettings
Instance Attribute Summary collapse
-
#company_hq_enabled ⇒ Object
Returns the value of attribute company_hq_enabled.
-
#projects_enabled ⇒ Object
Returns the value of attribute projects_enabled.
-
#teams_enabled ⇒ Object
Returns the value of attribute teams_enabled.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ AccountSettings
constructor
A new instance of AccountSettings.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ AccountSettings
Returns a new instance of AccountSettings.
167 168 169 170 171 |
# File 'lib/basecamp/generated/types.rb', line 167 def initialize(data = {}) @company_hq_enabled = parse_boolean(data["company_hq_enabled"]) @projects_enabled = parse_boolean(data["projects_enabled"]) @teams_enabled = parse_boolean(data["teams_enabled"]) end |
Instance Attribute Details
#company_hq_enabled ⇒ Object
Returns the value of attribute company_hq_enabled.
165 166 167 |
# File 'lib/basecamp/generated/types.rb', line 165 def company_hq_enabled @company_hq_enabled end |
#projects_enabled ⇒ Object
Returns the value of attribute projects_enabled.
165 166 167 |
# File 'lib/basecamp/generated/types.rb', line 165 def projects_enabled @projects_enabled end |
#teams_enabled ⇒ Object
Returns the value of attribute teams_enabled.
165 166 167 |
# File 'lib/basecamp/generated/types.rb', line 165 def teams_enabled @teams_enabled end |
Instance Method Details
#to_h ⇒ Object
173 174 175 176 177 178 179 |
# File 'lib/basecamp/generated/types.rb', line 173 def to_h { "company_hq_enabled" => @company_hq_enabled, "projects_enabled" => @projects_enabled, "teams_enabled" => @teams_enabled, }.compact end |
#to_json(*args) ⇒ Object
181 182 183 |
# File 'lib/basecamp/generated/types.rb', line 181 def to_json(*args) to_h.to_json(*args) end |