Class: AngelList::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Response

Returns a new instance of Response.



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

def initialize(response)
  self.content = AngelList::Tools.parse(response.response.env[:body].to_s)
  self.content
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



5
6
7
# File 'lib/angel_list/response.rb', line 5

def content
  @content
end