class Kintone::Api::Guest

Constants

ACCESSIBLE_COMMAND
GUEST_PATH

Public Class Methods

new(space_id, api) click to toggle source
# File lib/kintone/api/guest.rb, line 31
def initialize(space_id, api)
  @api = api
  @guest_path = GUEST_PATH % space_id
end

Public Instance Methods

get_url(command) click to toggle source
# File lib/kintone/api/guest.rb, line 36
def get_url(command)
  @guest_path + (COMMAND % command)
end
method_missing(name, *args) click to toggle source
Calls superclass method
# File lib/kintone/api/guest.rb, line 40
def method_missing(name, *args)
  if ACCESSIBLE_COMMAND.include?(name)
    CommandAccessor.send(name, self)
  else
    super
  end
end
respond_to_missing?(name, *args) click to toggle source
Calls superclass method
# File lib/kintone/api/guest.rb, line 48
def respond_to_missing?(name, *args)
  ACCESSIBLE_COMMAND.include?(name) || super
end