Class: BaseParser

Inherits:
Object
  • Object
show all
Defined in:
lib/bob/parsers/base_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_response) ⇒ BaseParser

Returns a new instance of BaseParser.



6
7
8
# File 'lib/bob/parsers/base_parser.rb', line 6

def initialize(json_response)
  @json_response = json_response
end

Instance Attribute Details

#json_responseObject (readonly)

Returns the value of attribute json_response.



4
5
6
# File 'lib/bob/parsers/base_parser.rb', line 4

def json_response
  @json_response
end

Instance Method Details

#fieldsObject



10
11
12
# File 'lib/bob/parsers/base_parser.rb', line 10

def fields
  Models::Base.new(json_response)
end