class Clarc::Response
Attributes
result[R]
status[R]
Public Class Methods
new(status, result)
click to toggle source
# File lib/clarc/response.rb, line 5 def initialize status, result @status, @result = status, result end
Public Instance Methods
method_missing(name, *args, &block)
click to toggle source
Calls superclass method
# File lib/clarc/response.rb, line 9 def method_missing name, *args, &block return super unless name.end_with?('?') @status.to_sym == name[0..-2].to_sym end