class SoapyCake::AdminBatched

Constants

ALLOWED_METHODS

Attributes

opts[R]

Public Class Methods

new(opts = {}) click to toggle source
# File lib/soapy_cake/admin_batched.rb, line 10
def initialize(opts = {})
  @opts = opts
end

Public Instance Methods

method_missing(name, method_opts = {}, limit = nil) click to toggle source
Calls superclass method
# File lib/soapy_cake/admin_batched.rb, line 68
def method_missing(name, method_opts = {}, limit = nil)
  if respond_to_missing?(name)
    BatchedRequest.new(admin, name, method_opts, limit).to_enum
  else
    super
  end
end
respond_to_missing?(name) click to toggle source
# File lib/soapy_cake/admin_batched.rb, line 64
def respond_to_missing?(name)
  ALLOWED_METHODS.include?(name)
end

Private Instance Methods

admin() click to toggle source
# File lib/soapy_cake/admin_batched.rb, line 80
def admin
  @admin ||= Admin.new(opts)
end