module RevereMobile

Constants

VERSION

Attributes

configuration[R]

The RevereMobile configuration object. @return [RevereMobile::Configuration]

Public Class Methods

client() click to toggle source
# File lib/revere_mobile.rb, line 13
def client
  @client ||= RevereMobile::Client.new
end
configuration=(config) click to toggle source

Set new configuration @param config [RevereMobile::Configuration]

# File lib/revere_mobile.rb, line 32
def self.configuration=(config)
  @configuration = config
end
configure() { |configuration| ... } click to toggle source

Modify the current configuration

@yieldparam [RevereMobile::Configuration] config The current RevereMobile config

“`

RevereMobile.configure do |config|
  config.api_endpoint = 'https://mobile.reverehq.com/api/v1'
  config.username = 'example'
  config.password = 'example'
end

“`

# File lib/revere_mobile.rb, line 48
def self.configure
  yield configuration
end
method_missing(method_name, *args, &block) click to toggle source

Delegate methods called on RevereMobile to the client.

Calls superclass method
# File lib/revere_mobile.rb, line 18
def method_missing(method_name, *args, &block)
  return super unless client.respond_to?(method_name)
  client.send(method_name, *args, &block)
end