Class: Flute::Request

Inherits:
Typhoeus::Request
  • Object
show all
Defined in:
lib/flute/request.rb

Instance Method Summary collapse

Instance Method Details

#metaObject



3
4
5
# File 'lib/flute/request.rb', line 3

def meta
  @meta
end

#meta=(item) ⇒ Object



7
8
9
# File 'lib/flute/request.rb', line 7

def meta=(item)
  @meta = item
end

#response_htmlObject



11
12
13
# File 'lib/flute/request.rb', line 11

def response_html
  Document.parse response.body
end

#response_jsonObject



15
16
17
# File 'lib/flute/request.rb', line 15

def response_json
  JSON.parse(response.body).symbolize_keys
end