Class: Basecamp::Types::CardColumn
- Inherits:
-
Object
- Object
- Basecamp::Types::CardColumn
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
CardColumn
Instance Attribute Summary collapse
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#bookmark_url ⇒ Object
Returns the value of attribute bookmark_url.
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#cards_count ⇒ Object
Returns the value of attribute cards_count.
-
#cards_url ⇒ Object
Returns the value of attribute cards_url.
-
#color ⇒ Object
Returns the value of attribute color.
-
#comments_count ⇒ Object
Returns the value of attribute comments_count.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#inherits_status ⇒ Object
Returns the value of attribute inherits_status.
-
#on_hold ⇒ Object
Returns the value of attribute on_hold.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#position ⇒ Object
Returns the value of attribute position.
-
#status ⇒ Object
Returns the value of attribute status.
-
#subscribers ⇒ Object
Returns the value of attribute subscribers.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#url ⇒ Object
Returns the value of attribute url.
-
#visible_to_clients ⇒ Object
Returns the value of attribute visible_to_clients.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ CardColumn
constructor
A new instance of CardColumn.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ CardColumn
Returns a new instance of CardColumn.
588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 |
# File 'lib/basecamp/generated/types.rb', line 588 def initialize(data = {}) @app_url = data["app_url"] @bucket = parse_type(data["bucket"], "TodoBucket") @created_at = parse_datetime(data["created_at"]) @creator = parse_type(data["creator"], "Person") @id = parse_integer(data["id"]) @inherits_status = parse_boolean(data["inherits_status"]) @parent = parse_type(data["parent"], "RecordingParent") @status = data["status"] @title = data["title"] @type = data["type"] @updated_at = parse_datetime(data["updated_at"]) @url = data["url"] @visible_to_clients = parse_boolean(data["visible_to_clients"]) @bookmark_url = data["bookmark_url"] @cards_count = parse_integer(data["cards_count"]) @cards_url = data["cards_url"] @color = data["color"] @comments_count = parse_integer(data["comments_count"]) @description = data["description"] @on_hold = parse_type(data["on_hold"], "CardColumnOnHold") @position = parse_integer(data["position"]) @subscribers = parse_array(data["subscribers"], "Person") end |
Instance Attribute Details
#app_url ⇒ Object
Returns the value of attribute app_url.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def app_url @app_url end |
#bookmark_url ⇒ Object
Returns the value of attribute bookmark_url.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def bookmark_url @bookmark_url end |
#bucket ⇒ Object
Returns the value of attribute bucket.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def bucket @bucket end |
#cards_count ⇒ Object
Returns the value of attribute cards_count.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def cards_count @cards_count end |
#cards_url ⇒ Object
Returns the value of attribute cards_url.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def cards_url @cards_url end |
#color ⇒ Object
Returns the value of attribute color.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def color @color end |
#comments_count ⇒ Object
Returns the value of attribute comments_count.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def comments_count @comments_count end |
#created_at ⇒ Object
Returns the value of attribute created_at.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def created_at @created_at end |
#creator ⇒ Object
Returns the value of attribute creator.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def creator @creator end |
#description ⇒ Object
Returns the value of attribute description.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def id @id end |
#inherits_status ⇒ Object
Returns the value of attribute inherits_status.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def inherits_status @inherits_status end |
#on_hold ⇒ Object
Returns the value of attribute on_hold.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def on_hold @on_hold end |
#parent ⇒ Object
Returns the value of attribute parent.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def parent @parent end |
#position ⇒ Object
Returns the value of attribute position.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def position @position end |
#status ⇒ Object
Returns the value of attribute status.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def status @status end |
#subscribers ⇒ Object
Returns the value of attribute subscribers.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def subscribers @subscribers end |
#title ⇒ Object
Returns the value of attribute title.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def type @type end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def updated_at @updated_at end |
#url ⇒ Object
Returns the value of attribute url.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def url @url end |
#visible_to_clients ⇒ Object
Returns the value of attribute visible_to_clients.
581 582 583 |
# File 'lib/basecamp/generated/types.rb', line 581 def visible_to_clients @visible_to_clients end |
Class Method Details
.required_fields ⇒ Array<Symbol>
584 585 586 |
# File 'lib/basecamp/generated/types.rb', line 584 def self.required_fields %i[app_url bucket created_at creator id inherits_status parent status title type updated_at url visible_to_clients].freeze end |
Instance Method Details
#to_h ⇒ Object
613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 |
# File 'lib/basecamp/generated/types.rb', line 613 def to_h { "app_url" => @app_url, "bucket" => @bucket, "created_at" => @created_at, "creator" => @creator, "id" => @id, "inherits_status" => @inherits_status, "parent" => @parent, "status" => @status, "title" => @title, "type" => @type, "updated_at" => @updated_at, "url" => @url, "visible_to_clients" => @visible_to_clients, "bookmark_url" => @bookmark_url, "cards_count" => @cards_count, "cards_url" => @cards_url, "color" => @color, "comments_count" => @comments_count, "description" => @description, "on_hold" => @on_hold, "position" => @position, "subscribers" => @subscribers, }.compact end |
#to_json(*args) ⇒ Object
640 641 642 |
# File 'lib/basecamp/generated/types.rb', line 640 def to_json(*args) to_h.to_json(*args) end |