Class: Appfigures::External

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/appfigures/external.rb

Instance Method Summary collapse

Constructor Details

#initialize(username, password) ⇒ External

Returns a new instance of External.



9
10
11
# File 'lib/appfigures/external.rb', line 9

def initialize(username, password)
  @auth = {:username => username, :password => password}
end

Instance Method Details

#externalObject

get list of external accounts requires admin



15
16
17
# File 'lib/appfigures/external.rb', line 15

def external
  self.class.get("/external_accounts", {:basic_auth => @auth})      
end