Class: Basecamp::Types::AccountSubscription
- Inherits:
-
Object
- Object
- Basecamp::Types::AccountSubscription
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
AccountSubscription
Instance Attribute Summary collapse
-
#clients ⇒ Object
Returns the value of attribute clients.
-
#logo ⇒ Object
Returns the value of attribute logo.
-
#project_limit ⇒ Object
Returns the value of attribute project_limit.
-
#proper_name ⇒ Object
Returns the value of attribute proper_name.
-
#short_name ⇒ Object
Returns the value of attribute short_name.
-
#teams ⇒ Object
Returns the value of attribute teams.
-
#templates ⇒ Object
Returns the value of attribute templates.
-
#timesheet ⇒ Object
Returns the value of attribute timesheet.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ AccountSubscription
constructor
A new instance of AccountSubscription.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ AccountSubscription
Returns a new instance of AccountSubscription.
191 192 193 194 195 196 197 198 199 200 |
# File 'lib/basecamp/generated/types.rb', line 191 def initialize(data = {}) @clients = parse_boolean(data["clients"]) @logo = parse_boolean(data["logo"]) @project_limit = parse_integer(data["project_limit"]) @proper_name = data["proper_name"] @short_name = data["short_name"] @teams = parse_boolean(data["teams"]) @templates = parse_boolean(data["templates"]) @timesheet = parse_boolean(data["timesheet"]) end |
Instance Attribute Details
#clients ⇒ Object
Returns the value of attribute clients.
189 190 191 |
# File 'lib/basecamp/generated/types.rb', line 189 def clients @clients end |
#logo ⇒ Object
Returns the value of attribute logo.
189 190 191 |
# File 'lib/basecamp/generated/types.rb', line 189 def logo @logo end |
#project_limit ⇒ Object
Returns the value of attribute project_limit.
189 190 191 |
# File 'lib/basecamp/generated/types.rb', line 189 def project_limit @project_limit end |
#proper_name ⇒ Object
Returns the value of attribute proper_name.
189 190 191 |
# File 'lib/basecamp/generated/types.rb', line 189 def proper_name @proper_name end |
#short_name ⇒ Object
Returns the value of attribute short_name.
189 190 191 |
# File 'lib/basecamp/generated/types.rb', line 189 def short_name @short_name end |
#teams ⇒ Object
Returns the value of attribute teams.
189 190 191 |
# File 'lib/basecamp/generated/types.rb', line 189 def teams @teams end |
#templates ⇒ Object
Returns the value of attribute templates.
189 190 191 |
# File 'lib/basecamp/generated/types.rb', line 189 def templates @templates end |
#timesheet ⇒ Object
Returns the value of attribute timesheet.
189 190 191 |
# File 'lib/basecamp/generated/types.rb', line 189 def timesheet @timesheet end |
Instance Method Details
#to_h ⇒ Object
202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/basecamp/generated/types.rb', line 202 def to_h { "clients" => @clients, "logo" => @logo, "project_limit" => @project_limit, "proper_name" => @proper_name, "short_name" => @short_name, "teams" => @teams, "templates" => @templates, "timesheet" => @timesheet, }.compact end |
#to_json(*args) ⇒ Object
215 216 217 |
# File 'lib/basecamp/generated/types.rb', line 215 def to_json(*args) to_h.to_json(*args) end |