class Softledger

Attributes

access_token[R]

include 'http'

Public Class Methods

hi(language) click to toggle source
# File lib/softledger.rb, line 12
def self.hi(language)
  translator = Translator.new(language)
  translator.hi
end
new(params) click to toggle source
# File lib/softledger.rb, line 6
def initialize(params)
  @username = params[:username]
  @password = params[:password]
  @access_token = authenticate
end

Private Instance Methods

authenticate() click to toggle source
# File lib/softledger.rb, line 19
def authenticate
  # url = "https://softledger.auth0.com/oauth/token"

  #   {
  #     "grant_type": "string",
  #     "tenantUUID": "string",
  #     "audience": "string",
  #     "client_id": "string",
  #     "client_secret": "string"
  #   }

  return "Hello World of : #{@username} "
end