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.
4861 4862 4863 4864 |
# File 'lib/basecamp/generated/types.rb', line 4861 def initialize(data = {}) @id = parse_integer(data["id"]) @title = data["title"] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4854 4855 4856 |
# File 'lib/basecamp/generated/types.rb', line 4854 def id @id end |
#title ⇒ Object
Returns the value of attribute title.
4854 4855 4856 |
# File 'lib/basecamp/generated/types.rb', line 4854 def title @title end |
Class Method Details
.required_fields ⇒ Array<Symbol>
4857 4858 4859 |
# File 'lib/basecamp/generated/types.rb', line 4857 def self.required_fields %i[id title].freeze end |
Instance Method Details
#to_h ⇒ Object
4866 4867 4868 4869 4870 4871 |
# File 'lib/basecamp/generated/types.rb', line 4866 def to_h { "id" => @id, "title" => @title, }.compact end |
#to_json(*args) ⇒ Object
4873 4874 4875 |
# File 'lib/basecamp/generated/types.rb', line 4873 def to_json(*args) to_h.to_json(*args) end |