Class: FellowshipOne::PersonReader

Inherits:
ApiReader
  • Object
show all
Defined in:
lib/readers/person_reader.rb

Instance Attribute Summary

Attributes inherited from ApiReader

#headers

Instance Method Summary collapse

Methods inherited from ApiReader

#load_feed, #load_new

Constructor Details

#initialize(person_id = nil) ⇒ PersonReader

Constructor.

Parameters:

  • person_id (optional) (defaults to: nil)

    The ID of the person to load.



8
9
10
11
12
13
14
# File 'lib/readers/person_reader.rb', line 8

def initialize(person_id = nil)
  if person_id.nil?
    @url_new_data_path = '/v1/People/New'
  else
    @url_data_path = "/v1/People/#{person_id}"
  end
end