class Qubell::API

Implements wrapper for Qubell API

Public Class Methods

new(options = {}) click to toggle source

@param [HashMap<String => String>] key

# File lib/qubell_api.rb, line 24
def initialize(options = {})
  options.each do |key|
    Qubell.configuration.send("#{key[0]}=", key[1])
  end
end

Public Instance Methods

organizations() click to toggle source

Get list of all organizations that current user belong to. @return [Array<Qubell::Organization>] organizations info

# File lib/qubell_api.rb, line 32
def organizations
  Qubell::APICall.get('/organizations').map do |org|
    Qubell::Organization.new(org)
  end
end