Class: Chain::AccessToken::ClientModule::Query

Inherits:
Query
  • Object
show all
Defined in:
lib/chain/access_token.rb

Instance Attribute Summary

Attributes inherited from Query

#client

Instance Method Summary collapse

Methods inherited from Query

#each, #initialize

Constructor Details

This class inherits a constructor from Chain::Query

Instance Method Details

#fetch(query) ⇒ Object



60
61
62
# File 'lib/chain/access_token.rb', line 60

def fetch(query)
  client.conn.request('list-access-tokens', query)
end

#translate(raw) ⇒ Object



64
65
66
# File 'lib/chain/access_token.rb', line 64

def translate(raw)
  AccessToken.new(raw)
end