Class: Supercamp::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/supercamp/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#countObject (readonly)

Returns the value of attribute count.



8
9
10
# File 'lib/supercamp/response.rb', line 8

def count
  @count
end

#entriesObject (readonly)

Returns the value of attribute entries.



9
10
11
# File 'lib/supercamp/response.rb', line 9

def entries
  @entries
end