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.
710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 |
# File 'lib/basecamp/generated/types.rb', line 710 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.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def app_url @app_url end |
#bookmark_url ⇒ Object
Returns the value of attribute bookmark_url.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def bookmark_url @bookmark_url end |
#bucket ⇒ Object
Returns the value of attribute bucket.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def bucket @bucket end |
#cards_count ⇒ Object
Returns the value of attribute cards_count.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def cards_count @cards_count end |
#cards_url ⇒ Object
Returns the value of attribute cards_url.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def cards_url @cards_url end |
#color ⇒ Object
Returns the value of attribute color.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def color @color end |
#comments_count ⇒ Object
Returns the value of attribute comments_count.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def comments_count @comments_count end |
#created_at ⇒ Object
Returns the value of attribute created_at.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def created_at @created_at end |
#creator ⇒ Object
Returns the value of attribute creator.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def creator @creator end |
#description ⇒ Object
Returns the value of attribute description.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def id @id end |
#inherits_status ⇒ Object
Returns the value of attribute inherits_status.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def inherits_status @inherits_status end |
#on_hold ⇒ Object
Returns the value of attribute on_hold.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def on_hold @on_hold end |
#parent ⇒ Object
Returns the value of attribute parent.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def parent @parent end |
#position ⇒ Object
Returns the value of attribute position.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def position @position end |
#status ⇒ Object
Returns the value of attribute status.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def status @status end |
#subscribers ⇒ Object
Returns the value of attribute subscribers.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def subscribers @subscribers end |
#title ⇒ Object
Returns the value of attribute title.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def type @type end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def updated_at @updated_at end |
#url ⇒ Object
Returns the value of attribute url.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def url @url end |
#visible_to_clients ⇒ Object
Returns the value of attribute visible_to_clients.
703 704 705 |
# File 'lib/basecamp/generated/types.rb', line 703 def visible_to_clients @visible_to_clients end |
Class Method Details
.required_fields ⇒ Array<Symbol>
706 707 708 |
# File 'lib/basecamp/generated/types.rb', line 706 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
735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 |
# File 'lib/basecamp/generated/types.rb', line 735 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
762 763 764 |
# File 'lib/basecamp/generated/types.rb', line 762 def to_json(*args) to_h.to_json(*args) end |