Class: Basecamp::Types::MyAssignmentParent
- Inherits:
-
Object
- Object
- Basecamp::Types::MyAssignmentParent
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
MyAssignmentParent
Instance Attribute Summary collapse
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#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 = {}) ⇒ MyAssignmentParent
constructor
A new instance of MyAssignmentParent.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ MyAssignmentParent
Returns a new instance of MyAssignmentParent.
2740 2741 2742 2743 2744 |
# File 'lib/basecamp/generated/types.rb', line 2740 def initialize(data = {}) @id = parse_integer(data["id"]) @app_url = data["app_url"] @title = data["title"] end |
Instance Attribute Details
#app_url ⇒ Object
Returns the value of attribute app_url.
2733 2734 2735 |
# File 'lib/basecamp/generated/types.rb', line 2733 def app_url @app_url end |
#id ⇒ Object
Returns the value of attribute id.
2733 2734 2735 |
# File 'lib/basecamp/generated/types.rb', line 2733 def id @id end |
#title ⇒ Object
Returns the value of attribute title.
2733 2734 2735 |
# File 'lib/basecamp/generated/types.rb', line 2733 def title @title end |
Class Method Details
.required_fields ⇒ Array<Symbol>
2736 2737 2738 |
# File 'lib/basecamp/generated/types.rb', line 2736 def self.required_fields %i[id].freeze end |
Instance Method Details
#to_h ⇒ Object
2746 2747 2748 2749 2750 2751 2752 |
# File 'lib/basecamp/generated/types.rb', line 2746 def to_h { "id" => @id, "app_url" => @app_url, "title" => @title, }.compact end |
#to_json(*args) ⇒ Object
2754 2755 2756 |
# File 'lib/basecamp/generated/types.rb', line 2754 def to_json(*args) to_h.to_json(*args) end |