Class: Basecamp::Types::UpcomingAssignable
- Inherits:
-
Object
- Object
- Basecamp::Types::UpcomingAssignable
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
UpcomingAssignable
Instance Attribute Summary collapse
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#assignees ⇒ Object
Returns the value of attribute assignees.
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#comments_count ⇒ Object
Returns the value of attribute comments_count.
-
#completed ⇒ Object
Returns the value of attribute completed.
-
#completion ⇒ Object
Returns the value of attribute completion.
-
#completion_url ⇒ Object
Returns the value of attribute completion_url.
-
#content ⇒ Object
Returns the value of attribute content.
-
#due_on ⇒ Object
Returns the value of attribute due_on.
-
#id ⇒ Object
Returns the value of attribute id.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#repeating ⇒ Object
Returns the value of attribute repeating.
-
#starts_on ⇒ Object
Returns the value of attribute starts_on.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
-
#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 = {}) ⇒ UpcomingAssignable
constructor
A new instance of UpcomingAssignable.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ UpcomingAssignable
Returns a new instance of UpcomingAssignable.
4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 |
# File 'lib/basecamp/generated/types.rb', line 4892 def initialize(data = {}) @app_url = data["app_url"] @assignees = parse_array(data["assignees"], "UpcomingSchedulePerson") @bucket = parse_type(data["bucket"], "UpcomingScheduleBucket") @comments_count = parse_integer(data["comments_count"]) @completed = parse_boolean(data["completed"]) @completion_url = data["completion_url"] @content = data["content"] @id = parse_integer(data["id"]) @parent = parse_type(data["parent"], "UpcomingAssignableParent") @repeating = parse_boolean(data["repeating"]) @status = data["status"] @type = data["type"] @url = data["url"] @visible_to_clients = parse_boolean(data["visible_to_clients"]) @completion = parse_type(data["completion"], "UpcomingAssignableCompletion") @due_on = data["due_on"] @starts_on = data["starts_on"] end |
Instance Attribute Details
#app_url ⇒ Object
Returns the value of attribute app_url.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def app_url @app_url end |
#assignees ⇒ Object
Returns the value of attribute assignees.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def assignees @assignees end |
#bucket ⇒ Object
Returns the value of attribute bucket.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def bucket @bucket end |
#comments_count ⇒ Object
Returns the value of attribute comments_count.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def comments_count @comments_count end |
#completed ⇒ Object
Returns the value of attribute completed.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def completed @completed end |
#completion ⇒ Object
Returns the value of attribute completion.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def completion @completion end |
#completion_url ⇒ Object
Returns the value of attribute completion_url.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def completion_url @completion_url end |
#content ⇒ Object
Returns the value of attribute content.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def content @content end |
#due_on ⇒ Object
Returns the value of attribute due_on.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def due_on @due_on end |
#id ⇒ Object
Returns the value of attribute id.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def id @id end |
#parent ⇒ Object
Returns the value of attribute parent.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def parent @parent end |
#repeating ⇒ Object
Returns the value of attribute repeating.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def repeating @repeating end |
#starts_on ⇒ Object
Returns the value of attribute starts_on.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def starts_on @starts_on end |
#status ⇒ Object
Returns the value of attribute status.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def url @url end |
#visible_to_clients ⇒ Object
Returns the value of attribute visible_to_clients.
4885 4886 4887 |
# File 'lib/basecamp/generated/types.rb', line 4885 def visible_to_clients @visible_to_clients end |
Class Method Details
.required_fields ⇒ Array<Symbol>
4888 4889 4890 |
# File 'lib/basecamp/generated/types.rb', line 4888 def self.required_fields %i[app_url assignees bucket comments_count completed completion_url content id parent repeating status type url visible_to_clients].freeze end |
Instance Method Details
#to_h ⇒ Object
4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 |
# File 'lib/basecamp/generated/types.rb', line 4912 def to_h { "app_url" => @app_url, "assignees" => @assignees, "bucket" => @bucket, "comments_count" => @comments_count, "completed" => @completed, "completion_url" => @completion_url, "content" => @content, "id" => @id, "parent" => @parent, "repeating" => @repeating, "status" => @status, "type" => @type, "url" => @url, "visible_to_clients" => @visible_to_clients, "completion" => @completion, "due_on" => @due_on, "starts_on" => @starts_on, }.compact end |
#to_json(*args) ⇒ Object
4934 4935 4936 |
# File 'lib/basecamp/generated/types.rb', line 4934 def to_json(*args) to_h.to_json(*args) end |