Class: ShelbyArena::PersonReader
- Defined in:
- lib/readers/person_reader.rb
Instance Attribute Summary
Attributes inherited from ApiReader
Instance Method Summary collapse
-
#initialize(person_id = nil) ⇒ PersonReader
constructor
Constructor.
Methods inherited from ApiReader
Constructor Details
#initialize(person_id = nil) ⇒ PersonReader
Constructor.
8 9 10 11 12 13 14 15 |
# File 'lib/readers/person_reader.rb', line 8 def initialize(person_id = nil) if person_id.nil? raise 'The create endpoint is not known yet.' @url_new_data_path = nil # Not sure yet else @url_data_path = "person/#{person_id}" end end |