Class: Aspera::Node
Overview
Provides additional functions using node API.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Rest
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rest_params) ⇒ Node
constructor
A new instance of Node.
Methods inherited from Rest
basic_creds, build_uri, #call, #cancel, #create, debug=, #delete, insecure, insecure=, #oauth_token, #read, #update, user_agent, user_agent=
Constructor Details
#initialize(rest_params) ⇒ Node
Returns a new instance of Node.
9 10 11 12 |
# File 'lib/aspera/node.rb', line 9 def initialize(rest_params) super(rest_params) # specifics here end |
Class Method Details
.decode_bearer_token(token) ⇒ Object
6 7 8 |
# File 'lib/aspera/node.rb', line 6 def self.decode_bearer_token(token) return JSON.parse(Zlib::Inflate.inflate(Base64.decode64(token)).partition('==SIGNATURE==').first) end |