Class: Appfigures::External
- Inherits:
-
Object
- Object
- Appfigures::External
- Includes:
- HTTParty
- Defined in:
- lib/appfigures/external.rb
Instance Method Summary collapse
-
#external ⇒ Object
get list of external accounts requires admin.
-
#initialize(username, password) ⇒ External
constructor
A new instance of External.
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
#external ⇒ Object
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 |