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.
601 602 603 604 605 606 607 608 609 610 |
# File 'lib/basecamp/generated/types.rb', line 601 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.
594 595 596 |
# File 'lib/basecamp/generated/types.rb', line 594 def cards_count @cards_count end |
#cards_url ⇒ Object
Returns the value of attribute cards_url.
594 595 596 |
# File 'lib/basecamp/generated/types.rb', line 594 def cards_url @cards_url end |
#created_at ⇒ Object
Returns the value of attribute created_at.
594 595 596 |
# File 'lib/basecamp/generated/types.rb', line 594 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
594 595 596 |
# File 'lib/basecamp/generated/types.rb', line 594 def id @id end |
#inherits_status ⇒ Object
Returns the value of attribute inherits_status.
594 595 596 |
# File 'lib/basecamp/generated/types.rb', line 594 def inherits_status @inherits_status end |
#status ⇒ Object
Returns the value of attribute status.
594 595 596 |
# File 'lib/basecamp/generated/types.rb', line 594 def status @status end |
#title ⇒ Object
Returns the value of attribute title.
594 595 596 |
# File 'lib/basecamp/generated/types.rb', line 594 def title @title end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
594 595 596 |
# File 'lib/basecamp/generated/types.rb', line 594 def updated_at @updated_at end |
Class Method Details
.required_fields ⇒ Array<Symbol>
597 598 599 |
# File 'lib/basecamp/generated/types.rb', line 597 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
612 613 614 615 616 617 618 619 620 621 622 623 |
# File 'lib/basecamp/generated/types.rb', line 612 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
625 626 627 |
# File 'lib/basecamp/generated/types.rb', line 625 def to_json(*args) to_h.to_json(*args) end |