Class: Basecamp::Types::EventDetails

Inherits:
Object
  • Object
show all
Includes:
TypeHelpers
Defined in:
lib/basecamp/generated/types.rb

Overview

EventDetails

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ EventDetails

Returns a new instance of EventDetails.



1685
1686
1687
1688
1689
# File 'lib/basecamp/generated/types.rb', line 1685

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_idsObject

Returns the value of attribute added_person_ids.



1683
1684
1685
# File 'lib/basecamp/generated/types.rb', line 1683

def added_person_ids
  @added_person_ids
end

#notified_recipient_idsObject

Returns the value of attribute notified_recipient_ids.



1683
1684
1685
# File 'lib/basecamp/generated/types.rb', line 1683

def notified_recipient_ids
  @notified_recipient_ids
end

#removed_person_idsObject

Returns the value of attribute removed_person_ids.



1683
1684
1685
# File 'lib/basecamp/generated/types.rb', line 1683

def removed_person_ids
  @removed_person_ids
end

Instance Method Details

#to_hObject



1691
1692
1693
1694
1695
1696
1697
# File 'lib/basecamp/generated/types.rb', line 1691

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



1699
1700
1701
# File 'lib/basecamp/generated/types.rb', line 1699

def to_json(*args)
  to_h.to_json(*args)
end