Class: Basecamp::Types::TimelineEvent
- Inherits:
-
Object
- Object
- Basecamp::Types::TimelineEvent
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
TimelineEvent
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#attachments ⇒ Object
Returns the value of attribute attachments.
-
#avatars_sample ⇒ Object
Returns the value of attribute avatars_sample.
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#data ⇒ Object
Returns the value of attribute data.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#parent_recording_id ⇒ Object
Returns the value of attribute parent_recording_id.
-
#summary_excerpt ⇒ Object
Returns the value of attribute summary_excerpt.
-
#target ⇒ Object
Returns the value of attribute target.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ TimelineEvent
constructor
A new instance of TimelineEvent.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ TimelineEvent
Returns a new instance of TimelineEvent.
4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 |
# File 'lib/basecamp/generated/types.rb', line 4389 def initialize(data = {}) @action = data["action"] @app_url = data["app_url"] @attachments = parse_array(data["attachments"], "TimelineAttachment") @avatars_sample = data["avatars_sample"] @bucket = parse_type(data["bucket"], "TodoBucket") @created_at = parse_datetime(data["created_at"]) @creator = parse_type(data["creator"], "Person") @data = parse_type(data["data"], "TimelineEventData") @id = parse_integer(data["id"]) @kind = data["kind"] @parent_recording_id = parse_integer(data["parent_recording_id"]) @summary_excerpt = data["summary_excerpt"] @target = data["target"] @title = data["title"] @url = data["url"] end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def action @action end |
#app_url ⇒ Object
Returns the value of attribute app_url.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def app_url @app_url end |
#attachments ⇒ Object
Returns the value of attribute attachments.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def @attachments end |
#avatars_sample ⇒ Object
Returns the value of attribute avatars_sample.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def avatars_sample @avatars_sample end |
#bucket ⇒ Object
Returns the value of attribute bucket.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def bucket @bucket end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def created_at @created_at end |
#creator ⇒ Object
Returns the value of attribute creator.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def creator @creator end |
#data ⇒ Object
Returns the value of attribute data.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def data @data end |
#id ⇒ Object
Returns the value of attribute id.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def kind @kind end |
#parent_recording_id ⇒ Object
Returns the value of attribute parent_recording_id.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def parent_recording_id @parent_recording_id end |
#summary_excerpt ⇒ Object
Returns the value of attribute summary_excerpt.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def summary_excerpt @summary_excerpt end |
#target ⇒ Object
Returns the value of attribute target.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def target @target end |
#title ⇒ Object
Returns the value of attribute title.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
4387 4388 4389 |
# File 'lib/basecamp/generated/types.rb', line 4387 def url @url end |
Instance Method Details
#to_h ⇒ Object
4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 |
# File 'lib/basecamp/generated/types.rb', line 4407 def to_h { "action" => @action, "app_url" => @app_url, "attachments" => @attachments, "avatars_sample" => @avatars_sample, "bucket" => @bucket, "created_at" => @created_at, "creator" => @creator, "data" => @data, "id" => @id, "kind" => @kind, "parent_recording_id" => @parent_recording_id, "summary_excerpt" => @summary_excerpt, "target" => @target, "title" => @title, "url" => @url, }.compact end |
#to_json(*args) ⇒ Object
4427 4428 4429 |
# File 'lib/basecamp/generated/types.rb', line 4427 def to_json(*args) to_h.to_json(*args) end |