Class: Basecamp::Types::EventDetails
- Inherits:
-
Object
- Object
- Basecamp::Types::EventDetails
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
EventDetails
Instance Attribute Summary collapse
-
#added_person_ids ⇒ Object
Returns the value of attribute added_person_ids.
-
#notified_recipient_ids ⇒ Object
Returns the value of attribute notified_recipient_ids.
-
#removed_person_ids ⇒ Object
Returns the value of attribute removed_person_ids.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ EventDetails
constructor
A new instance of EventDetails.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ EventDetails
Returns a new instance of EventDetails.
1621 1622 1623 1624 1625 |
# File 'lib/basecamp/generated/types.rb', line 1621 def initialize(data = {}) @added_person_ids = data["added_person_ids"] @notified_recipient_ids = data["notified_recipient_ids"] @removed_person_ids = data["removed_person_ids"] end |
Instance Attribute Details
#added_person_ids ⇒ Object
Returns the value of attribute added_person_ids.
1619 1620 1621 |
# File 'lib/basecamp/generated/types.rb', line 1619 def added_person_ids @added_person_ids end |
#notified_recipient_ids ⇒ Object
Returns the value of attribute notified_recipient_ids.
1619 1620 1621 |
# File 'lib/basecamp/generated/types.rb', line 1619 def notified_recipient_ids @notified_recipient_ids end |
#removed_person_ids ⇒ Object
Returns the value of attribute removed_person_ids.
1619 1620 1621 |
# File 'lib/basecamp/generated/types.rb', line 1619 def removed_person_ids @removed_person_ids end |
Instance Method Details
#to_h ⇒ Object
1627 1628 1629 1630 1631 1632 1633 |
# File 'lib/basecamp/generated/types.rb', line 1627 def to_h { "added_person_ids" => @added_person_ids, "notified_recipient_ids" => @notified_recipient_ids, "removed_person_ids" => @removed_person_ids, }.compact end |
#to_json(*args) ⇒ Object
1635 1636 1637 |
# File 'lib/basecamp/generated/types.rb', line 1635 def to_json(*args) to_h.to_json(*args) end |