class ArtGun::Response
Public Instance Methods
attributes()
click to toggle source
# File lib/art_gun/response.rb, line 14 def attributes self.class.attrs.inject({}){|h,k| h[k.to_s] = nil; h} end
attributes=(hash)
click to toggle source
# File lib/art_gun/response.rb, line 18 def attributes= hash hash.each do |key, value| send "#{key}=", value end end
success?()
click to toggle source
# File lib/art_gun/response.rb, line 10 def success? res == 'success' end