class CheckMobi::Resource

Constants

ALLOWED_METHODS

Public Instance Methods

client() click to toggle source
# File lib/check_mobi/resource.rb, line 13
def client
  Client.new(defaults)
end
perform() click to toggle source
# File lib/check_mobi/resource.rb, line 8
def perform
  before_perform
  client.perform
end

Private Instance Methods

after_initialize() click to toggle source
# File lib/check_mobi/resource.rb, line 21
def after_initialize
  @platform ||= CheckMobi::Configuration::DEFAULT_PLATFORM if instance_variable_defined?(:@platform)
end
before_perform() click to toggle source
# File lib/check_mobi/resource.rb, line 33
def before_perform  # overridden by subclasses

end
defaults() click to toggle source
# File lib/check_mobi/resource.rb, line 25
def defaults
  {
      rel_path: nil,
      http_method: nil,
      form_data: nil
  }
end