Class: Basecamp::Types::CardColumnOnHold
- Inherits:
-
Object
- Object
- Basecamp::Types::CardColumnOnHold
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
CardColumnOnHold
Instance Attribute Summary collapse
-
#cards_count ⇒ Object
Returns the value of attribute cards_count.
-
#cards_url ⇒ Object
Returns the value of attribute cards_url.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#inherits_status ⇒ Object
Returns the value of attribute inherits_status.
-
#status ⇒ Object
Returns the value of attribute status.
-
#title ⇒ Object
Returns the value of attribute title.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ CardColumnOnHold
constructor
A new instance of CardColumnOnHold.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ CardColumnOnHold
Returns a new instance of CardColumnOnHold.
777 778 779 780 781 782 783 784 785 786 |
# File 'lib/basecamp/generated/types.rb', line 777 def initialize(data = {}) @cards_count = parse_integer(data["cards_count"]) @cards_url = data["cards_url"] @created_at = parse_datetime(data["created_at"]) @id = parse_integer(data["id"]) @inherits_status = parse_boolean(data["inherits_status"]) @status = data["status"] @title = data["title"] @updated_at = parse_datetime(data["updated_at"]) end |
Instance Attribute Details
#cards_count ⇒ Object
Returns the value of attribute cards_count.
770 771 772 |
# File 'lib/basecamp/generated/types.rb', line 770 def cards_count @cards_count end |
#cards_url ⇒ Object
Returns the value of attribute cards_url.
770 771 772 |
# File 'lib/basecamp/generated/types.rb', line 770 def cards_url @cards_url end |
#created_at ⇒ Object
Returns the value of attribute created_at.
770 771 772 |
# File 'lib/basecamp/generated/types.rb', line 770 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
770 771 772 |
# File 'lib/basecamp/generated/types.rb', line 770 def id @id end |
#inherits_status ⇒ Object
Returns the value of attribute inherits_status.
770 771 772 |
# File 'lib/basecamp/generated/types.rb', line 770 def inherits_status @inherits_status end |
#status ⇒ Object
Returns the value of attribute status.
770 771 772 |
# File 'lib/basecamp/generated/types.rb', line 770 def status @status end |
#title ⇒ Object
Returns the value of attribute title.
770 771 772 |
# File 'lib/basecamp/generated/types.rb', line 770 def title @title end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
770 771 772 |
# File 'lib/basecamp/generated/types.rb', line 770 def updated_at @updated_at end |
Class Method Details
.required_fields ⇒ Array<Symbol>
773 774 775 |
# File 'lib/basecamp/generated/types.rb', line 773 def self.required_fields %i[cards_count cards_url created_at id inherits_status status title updated_at].freeze end |
Instance Method Details
#to_h ⇒ Object
788 789 790 791 792 793 794 795 796 797 798 799 |
# File 'lib/basecamp/generated/types.rb', line 788 def to_h { "cards_count" => @cards_count, "cards_url" => @cards_url, "created_at" => @created_at, "id" => @id, "inherits_status" => @inherits_status, "status" => @status, "title" => @title, "updated_at" => @updated_at, }.compact end |
#to_json(*args) ⇒ Object
801 802 803 |
# File 'lib/basecamp/generated/types.rb', line 801 def to_json(*args) to_h.to_json(*args) end |