Class: Supercamp::Response
- Inherits:
-
Object
- Object
- Supercamp::Response
- Defined in:
- lib/supercamp/response.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
11 12 13 14 15 16 |
# File 'lib/supercamp/response.rb', line 11 def initialize(response) p = parse_response(response.body) set_results_count(p) set_entries(p) end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
8 9 10 |
# File 'lib/supercamp/response.rb', line 8 def count @count end |
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
9 10 11 |
# File 'lib/supercamp/response.rb', line 9 def entries @entries end |