class Scale::Callbacks::Base
Attributes
json[R]
response[R]
Public Class Methods
match?(method)
click to toggle source
# File lib/scale/callbacks/base.rb, line 20 def self.match?(method) shortcut.to_s == method.to_s end
new(data)
click to toggle source
# File lib/scale/callbacks/base.rb, line 6 def initialize(data) @json = Scale.hash(data) @response = json[:response] end
shortcut()
click to toggle source
# File lib/scale/callbacks/base.rb, line 16 def self.shortcut raise NotImplementedError end
Public Instance Methods
status_code()
click to toggle source
# File lib/scale/callbacks/base.rb, line 11 def status_code response[:status_code] end