Class: Aspera::Node

Inherits:
Rest
  • Object
show all
Defined in:
lib/aspera/node.rb

Overview

Provides additional functions using node API.

Direct Known Subclasses

Fasp::Aoc

Instance Attribute Summary

Attributes inherited from Rest

#params

Class Method Summary collapse

Instance Method Summary collapse

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