class Omniship::Response
Attributes
message[R]
params[R]
request[R]
test[R]
xml[R]
Public Class Methods
new(success, message, params = {}, options = {})
click to toggle source
# File lib/omniship/response.rb, line 26 def initialize(success, message, params = {}, options = {}) @success, @message, @params = success, message, params.stringify_keys @test = options[:test] || false @xml = options[:xml] @request = options[:request] raise ResponseError.new(self) unless success end
Public Instance Methods
success?()
click to toggle source
# File lib/omniship/response.rb, line 34 def success? @success ? true : false end
test?()
click to toggle source
# File lib/omniship/response.rb, line 38 def test? @test ? true : false end