Class: Basecamp::Types::AccountSubscription

Inherits:
Object
  • Object
show all
Includes:
TypeHelpers
Defined in:
lib/basecamp/generated/types.rb

Overview

AccountSubscription

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientsObject

Returns the value of attribute clients.



189
190
191
# File 'lib/basecamp/generated/types.rb', line 189

def clients
  @clients
end

#logoObject

Returns the value of attribute logo.



189
190
191
# File 'lib/basecamp/generated/types.rb', line 189

def 
  @logo
end

#project_limitObject

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_nameObject

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_nameObject

Returns the value of attribute short_name.



189
190
191
# File 'lib/basecamp/generated/types.rb', line 189

def short_name
  @short_name
end

#teamsObject

Returns the value of attribute teams.



189
190
191
# File 'lib/basecamp/generated/types.rb', line 189

def teams
  @teams
end

#templatesObject

Returns the value of attribute templates.



189
190
191
# File 'lib/basecamp/generated/types.rb', line 189

def templates
  @templates
end

#timesheetObject

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_hObject



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