Class: Basecamp::Types::MyAssignmentBucket
- Inherits:
-
Object
- Object
- Basecamp::Types::MyAssignmentBucket
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
MyAssignmentBucket
Instance Attribute Summary collapse
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ MyAssignmentBucket
constructor
A new instance of MyAssignmentBucket.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ MyAssignmentBucket
Returns a new instance of MyAssignmentBucket.
2070 2071 2072 2073 2074 |
# File 'lib/basecamp/generated/types.rb', line 2070 def initialize(data = {}) @id = parse_integer(data["id"]) @app_url = data["app_url"] @name = data["name"] end |
Instance Attribute Details
#app_url ⇒ Object
Returns the value of attribute app_url.
2063 2064 2065 |
# File 'lib/basecamp/generated/types.rb', line 2063 def app_url @app_url end |
#id ⇒ Object
Returns the value of attribute id.
2063 2064 2065 |
# File 'lib/basecamp/generated/types.rb', line 2063 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
2063 2064 2065 |
# File 'lib/basecamp/generated/types.rb', line 2063 def name @name end |
Class Method Details
.required_fields ⇒ Array<Symbol>
2066 2067 2068 |
# File 'lib/basecamp/generated/types.rb', line 2066 def self.required_fields %i[id].freeze end |
Instance Method Details
#to_h ⇒ Object
2076 2077 2078 2079 2080 2081 2082 |
# File 'lib/basecamp/generated/types.rb', line 2076 def to_h { "id" => @id, "app_url" => @app_url, "name" => @name, }.compact end |
#to_json(*args) ⇒ Object
2084 2085 2086 |
# File 'lib/basecamp/generated/types.rb', line 2084 def to_json(*args) to_h.to_json(*args) end |