Class: Basecamp::Types::UpcomingScheduleEntry
- Inherits:
-
Object
- Object
- Basecamp::Types::UpcomingScheduleEntry
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
UpcomingScheduleEntry
Instance Attribute Summary collapse
-
#all_day ⇒ Object
Returns the value of attribute all_day.
-
#app_url ⇒ Object
Returns the value of attribute app_url.
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#comments_count ⇒ Object
Returns the value of attribute comments_count.
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#ends_at ⇒ Object
Returns the value of attribute ends_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#participants ⇒ Object
Returns the value of attribute participants.
-
#recurring ⇒ Object
Returns the value of attribute recurring.
-
#starts_at ⇒ Object
Returns the value of attribute starts_at.
-
#status ⇒ Object
Returns the value of attribute status.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#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 = {}) ⇒ UpcomingScheduleEntry
constructor
A new instance of UpcomingScheduleEntry.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ UpcomingScheduleEntry
Returns a new instance of UpcomingScheduleEntry.
5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 |
# File 'lib/basecamp/generated/types.rb', line 5030 def initialize(data = {}) @all_day = parse_boolean(data["all_day"]) @app_url = data["app_url"] @bucket = parse_type(data["bucket"], "UpcomingScheduleBucket") @comments_count = parse_integer(data["comments_count"]) @creator = parse_type(data["creator"], "UpcomingSchedulePerson") @ends_at = data["ends_at"] @id = parse_integer(data["id"]) @participants = parse_array(data["participants"], "UpcomingSchedulePerson") @recurring = parse_boolean(data["recurring"]) @starts_at = data["starts_at"] @status = data["status"] @summary = data["summary"] @type = data["type"] @url = data["url"] @visible_to_clients = parse_boolean(data["visible_to_clients"]) end |
Instance Attribute Details
#all_day ⇒ Object
Returns the value of attribute all_day.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def all_day @all_day end |
#app_url ⇒ Object
Returns the value of attribute app_url.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def app_url @app_url end |
#bucket ⇒ Object
Returns the value of attribute bucket.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def bucket @bucket end |
#comments_count ⇒ Object
Returns the value of attribute comments_count.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def comments_count @comments_count end |
#creator ⇒ Object
Returns the value of attribute creator.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def creator @creator end |
#ends_at ⇒ Object
Returns the value of attribute ends_at.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def ends_at @ends_at end |
#id ⇒ Object
Returns the value of attribute id.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def id @id end |
#participants ⇒ Object
Returns the value of attribute participants.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def participants @participants end |
#recurring ⇒ Object
Returns the value of attribute recurring.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def recurring @recurring end |
#starts_at ⇒ Object
Returns the value of attribute starts_at.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def starts_at @starts_at end |
#status ⇒ Object
Returns the value of attribute status.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def status @status end |
#summary ⇒ Object
Returns the value of attribute summary.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def summary @summary end |
#type ⇒ Object
Returns the value of attribute type.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def url @url end |
#visible_to_clients ⇒ Object
Returns the value of attribute visible_to_clients.
5023 5024 5025 |
# File 'lib/basecamp/generated/types.rb', line 5023 def visible_to_clients @visible_to_clients end |
Class Method Details
.required_fields ⇒ Array<Symbol>
5026 5027 5028 |
# File 'lib/basecamp/generated/types.rb', line 5026 def self.required_fields %i[all_day app_url bucket comments_count creator ends_at id participants recurring starts_at status summary type url visible_to_clients].freeze end |
Instance Method Details
#to_h ⇒ Object
5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 |
# File 'lib/basecamp/generated/types.rb', line 5048 def to_h { "all_day" => @all_day, "app_url" => @app_url, "bucket" => @bucket, "comments_count" => @comments_count, "creator" => @creator, "ends_at" => @ends_at, "id" => @id, "participants" => @participants, "recurring" => @recurring, "starts_at" => @starts_at, "status" => @status, "summary" => @summary, "type" => @type, "url" => @url, "visible_to_clients" => @visible_to_clients, }.compact end |
#to_json(*args) ⇒ Object
5068 5069 5070 |
# File 'lib/basecamp/generated/types.rb', line 5068 def to_json(*args) to_h.to_json(*args) end |