Class: GoogleFish::Request
- Inherits:
-
Object
- Object
- GoogleFish::Request
- Defined in:
- lib/google_fish.rb
Defined Under Namespace
Classes: ApiError
Instance Attribute Summary collapse
-
#parsed_response ⇒ Object
Returns the value of attribute parsed_response.
-
#query ⇒ Object
Returns the value of attribute query.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(query) ⇒ Request
constructor
A new instance of Request.
- #perform_translation ⇒ Object
Constructor Details
#initialize(query) ⇒ Request
Returns a new instance of Request.
29 30 31 |
# File 'lib/google_fish.rb', line 29 def initialize(query) @query = query end |
Instance Attribute Details
#parsed_response ⇒ Object
Returns the value of attribute parsed_response.
27 28 29 |
# File 'lib/google_fish.rb', line 27 def parsed_response @parsed_response end |
#query ⇒ Object
Returns the value of attribute query.
27 28 29 |
# File 'lib/google_fish.rb', line 27 def query @query end |
#response ⇒ Object
Returns the value of attribute response.
27 28 29 |
# File 'lib/google_fish.rb', line 27 def response @response end |
Instance Method Details
#perform_translation ⇒ Object
33 34 35 36 |
# File 'lib/google_fish.rb', line 33 def perform_translation @response = get @parsed_response = parse end |