Class: NFAgent::ClientResponse
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ ClientResponse
constructor
A new instance of ClientResponse.
- #ok? ⇒ Boolean
Constructor Details
#initialize {|_self| ... } ⇒ ClientResponse
Returns a new instance of ClientResponse.
5 6 7 |
# File 'lib/nfagent/client_response.rb', line 5 def initialize yield self if block_given? end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/nfagent/client_response.rb', line 3 def @message end |
#response ⇒ Object
Returns the value of attribute response.
3 4 5 |
# File 'lib/nfagent/client_response.rb', line 3 def response @response end |
Instance Method Details
#ok? ⇒ Boolean
9 10 11 |
# File 'lib/nfagent/client_response.rb', line 9 def ok? Net::HTTPOK === response end |