Sha256: af234ebca4c7f19be557f658ff7aa3f360d57abe3b4b594517372c30fda66316

Contents?: true

Size: 1.98 KB

Versions: 1

Compression:

Stored size: 1.98 KB

Contents

class Kintone::Command
  # common
  autoload :Record, 'kintone/command/record'
  autoload :Records, 'kintone/command/records'
  autoload :BulkRequest, 'kintone/command/bulk_request'
  autoload :Form, 'kintone/command/form'
  autoload :App, 'kintone/command/app'
  autoload :Apps, 'kintone/command/apps'
  autoload :AppAcl, 'kintone/command/app_acl'
  autoload :RecordAcl, 'kintone/command/record_acl'
  autoload :FieldAcl, 'kintone/command/field_acl'
  autoload :Space, 'kintone/command/space'
  autoload :SpaceBody, 'kintone/command/space_body'
  autoload :SpaceThread, 'kintone/command/space_thread'
  autoload :SpaceMembers, 'kintone/command/space_members'
  autoload :File, 'kintone/command/file'

  # other than guest
  autoload :TemplateSpace, 'kintone/command/template_space'
  autoload :Guests, 'kintone/command/guests'
  autoload :Apis, 'kintone/command/apis'

  # guest only
  autoload :SpaceGuests, 'kintone/command/space_guests'

  module Accessor
    # common
    def record(api)
      Record.new(api)
    end

    def records(api)
      Records.new(api)
    end

    def bulk_request(api)
      BulkRequest.new(api)
    end

    def form(api)
      Form.new(api)
    end

    def app(api)
      App.new(api)
    end

    def apps(api)
      Apps.new(api)
    end

    def app_acl(api)
      AppAcl.new(api)
    end

    def record_acl(api)
      RecordAcl.new(api)
    end

    def field_acl(api)
      FieldAcl.new(api)
    end

    def space(api)
      Space.new(api)
    end

    def space_body(api)
      SpaceBody.new(api)
    end

    def space_thread(api)
      SpaceThread.new(api)
    end

    def space_members(api)
      SpaceMembers.new(api)
    end

    def file(api)
      File.new(api)
    end

    # other than guest
    def template_space(api)
      TemplateSpace.new(api)
    end

    def guests(api)
      Guests.new(api)
    end

    def apis(api)
      Apis.new(api)
    end

    # guest only
    def space_guests(api)
      SpaceGuests.new(api)
    end

    alias bulk bulk_request
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kintone-0.1.5 lib/kintone/command/accessor.rb