Class: TimeOffParser
Instance Attribute Summary
Attributes inherited from BaseParser
#json_response
Instance Method Summary
collapse
Methods inherited from BaseParser
#fields, #initialize
Constructor Details
This class inherits a constructor from BaseParser
Instance Method Details
#event ⇒ Object
4
5
6
|
# File 'lib/bob/parsers/time_off_parser.rb', line 4
def event
Models::TimeOff.new(json_response)
end
|
#events ⇒ Object
8
9
10
|
# File 'lib/bob/parsers/time_off_parser.rb', line 8
def events
json_response['outs'].map { |attributes| Models::TimeOff.new(attributes) }
end
|