Class: Access::Token
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from MuchMeta
#set_up_methods, #set_values
Constructor Details
#initialize(values) ⇒ Token
Returns a new instance of Token.
19
20
21
22
23
24
|
# File 'lib/access/token.rb', line 19
def initialize(values)
@used_fields = []
set_up_methods(values)
set_values(values)
@links = Access::Link.new(@links) if @links
end
|
Class Method Details
.find(token, options = {}) ⇒ Object
10
11
12
13
|
# File 'lib/access/token.rb', line 10
def self.find(token, options = {})
Access::Api.new.find_token token, options
end
|
.process_batch(chunk) ⇒ Object
15
16
17
|
# File 'lib/access/token.rb', line 15
def self.process_batch(chunk)
chunk.map { |token| new(token) }
end
|
.search(options = {}) ⇒ Object
5
6
7
8
|
# File 'lib/access/token.rb', line 5
def self.search(options = {})
Access::Api.new.search_tokens options
end
|
Instance Method Details
#has_scope? ⇒ Boolean
26
27
28
|
# File 'lib/access/token.rb', line 26
def has_scope?
end
|