Class: Net::HTTP::FollowTail::Result

Inherits:
Reindeer
  • Object
show all
Defined in:
lib/net/http/follow_tail.rb

Instance Method Summary collapse

Instance Method Details

#contentObject



24
25
26
# File 'lib/net/http/follow_tail.rb', line 24

def content
  response.body
end

#has_response?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/net/http/follow_tail.rb', line 13

def has_response?
  not @response.nil?
end

#is_error?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/net/http/follow_tail.rb', line 20

def is_error?
  @state == :error
end

#is_success?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/net/http/follow_tail.rb', line 17

def is_success?
  @state == :success
end