class PortaText::Command::Result
This class holds the result of calling the endpoint.
- Author
-
Marcelo Gornstein (marcelog@portatext.com)
- Copyright
-
Copyright © 2015
PortaText
- License
-
Apache-2.0
Attributes
code[RW]
data[RW]
headers[RW]
success[R]
Public Class Methods
new(code, headers, data)
click to toggle source
# File lib/portatext/command/result.rb, line 14 def initialize(code, headers, data) @code = code @headers = headers @data = data @success = code > 199 && code < 300 end