Class: Basecamp::Types::UpcomingAssignableParent
- Inherits:
-
Object
- Object
- Basecamp::Types::UpcomingAssignableParent
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
UpcomingAssignableParent
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#title ⇒ Object
Returns the value of attribute title.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ UpcomingAssignableParent
constructor
A new instance of UpcomingAssignableParent.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ UpcomingAssignableParent
Returns a new instance of UpcomingAssignableParent.
4976 4977 4978 4979 |
# File 'lib/basecamp/generated/types.rb', line 4976 def initialize(data = {}) @id = parse_integer(data["id"]) @title = data["title"] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4969 4970 4971 |
# File 'lib/basecamp/generated/types.rb', line 4969 def id @id end |
#title ⇒ Object
Returns the value of attribute title.
4969 4970 4971 |
# File 'lib/basecamp/generated/types.rb', line 4969 def title @title end |
Class Method Details
.required_fields ⇒ Array<Symbol>
4972 4973 4974 |
# File 'lib/basecamp/generated/types.rb', line 4972 def self.required_fields %i[id title].freeze end |
Instance Method Details
#to_h ⇒ Object
4981 4982 4983 4984 4985 4986 |
# File 'lib/basecamp/generated/types.rb', line 4981 def to_h { "id" => @id, "title" => @title, }.compact end |
#to_json(*args) ⇒ Object
4988 4989 4990 |
# File 'lib/basecamp/generated/types.rb', line 4988 def to_json(*args) to_h.to_json(*args) end |