Method: FellowshipOne::CommunicationReader#initialize
- Defined in:
- lib/readers/communication_reader.rb
#initialize(person_id, communication_id) ⇒ CommunicationReader
Constructor.
9 10 11 12 13 14 15 |
# File 'lib/readers/communication_reader.rb', line 9 def initialize(person_id, communication_id) if communication_id.nil? @url_new_data_path = "/v1/People/#{person_id}/Communications/new" else @url_data_path = "/v1/People/#{person_id}/Communications/#{communication_id}" end end |