class Asperalm::Node
Provides additional functions using node API.
Public Class Methods
decode_bearer_token(token)
click to toggle source
# File lib/asperalm/node.rb, line 6 def self.decode_bearer_token(token) return JSON.parse(Zlib::Inflate.inflate(Base64.decode64(token)).partition('==SIGNATURE==').first) end
new(rest_params)
click to toggle source
Calls superclass method
# File lib/asperalm/node.rb, line 9 def initialize(rest_params) super(rest_params) # specifics here end