Class: Syoboemon::APIResponseParser::Json
- Inherits:
-
Object
- Object
- Syoboemon::APIResponseParser::Json
- Defined in:
- lib/syoboemon/api_responce_parser/api_response_parser.rb
Instance Method Summary collapse
-
#initialize(responce) ⇒ Json
constructor
A new instance of Json.
- #parse ⇒ Object
Constructor Details
#initialize(responce) ⇒ Json
Returns a new instance of Json.
28 29 30 |
# File 'lib/syoboemon/api_responce_parser/api_response_parser.rb', line 28 def initialize(responce) @parse_data = responce end |
Instance Method Details
#parse ⇒ Object
32 33 34 |
# File 'lib/syoboemon/api_responce_parser/api_response_parser.rb', line 32 def parse return JSON.parse(@parse_data)["Titles"].keys[0] end |