Sha256: 54cc066ea9a006e1d5afb21f9b509716b6b33c163d5b59433c1a2945a2b59771

Contents?: true

Size: 592 Bytes

Versions: 14

Compression:

Stored size: 592 Bytes

Contents

module Access
  class Token
    include Access::MuchMeta

    def self.search(options = {})
      # Internal Admin only Call
      Access::Api.new.search_tokens options
    end

    def self.find(token, options = {})
      # Internal Admin only Call
      Access::Api.new.find_token token, options
    end

    def self.process_batch(chunk)
      chunk.map { |token| new(token) }
    end

    def initialize(values)
      @used_fields = []
      set_up_methods(values)
      set_values(values)
      @links = Access::Link.new(@links) if @links
    end

    def has_scope?

    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
access-2.3.0.pre.rc2 lib/access/token.rb
access-2.3.0.pre.rc1 lib/access/token.rb
access-2.2.0 lib/access/token.rb
access-2.1.5 lib/access/token.rb
access-2.1.4 lib/access/token.rb
access-2.1.3 lib/access/token.rb
access-2.1.2 lib/access/token.rb
access-2.1.1 lib/access/token.rb
access-2.1.0 lib/access/token.rb
access-2.0.55 lib/access/token.rb
access-2.0.54 lib/access/token.rb
access-2.0.53 lib/access/token.rb
access-2.0.52 lib/access/token.rb
access-2.0.51 lib/access/token.rb