Class: Fluxiom

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/fluxapi/base.rb

Direct Known Subclasses

Account, Asset, Assets, User, Users

Defined Under Namespace

Classes: Account, Asset, Assets, User, Users

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sub, u, p) ⇒ Fluxiom

Returns a new instance of Fluxiom.



4
5
6
7
# File 'lib/fluxapi/base.rb', line 4

def initialize(sub, u, p)
  self.class.base_uri sub + '.fluxiom.com'
  self.class.basic_auth u, p
end

Class Method Details

.call(url) ⇒ Object



8
9
10
# File 'lib/fluxapi/base.rb', line 8

def self.call(url)
  get(url)
end

Instance Method Details

#accountObject



11
12
13
# File 'lib/fluxapi/base.rb', line 11

def 
  Fluxiom::Account.new
end

#assetsObject



14
15
16
# File 'lib/fluxapi/base.rb', line 14

def assets
  Fluxiom::Assets.new
end

#usersObject



17
18
19
# File 'lib/fluxapi/base.rb', line 17

def users
  Fluxiom::Users.new
end