Class: Appfigures::Data
- Inherits:
-
Object
- Object
- Appfigures::Data
- Includes:
- HTTParty
- Defined in:
- lib/appfigures/data.rb
Instance Method Summary collapse
- #categories ⇒ Object
- #currencies ⇒ Object
-
#initialize(username, password) ⇒ Data
constructor
A new instance of Data.
- #languages ⇒ Object
- #stores ⇒ Object
Constructor Details
#initialize(username, password) ⇒ Data
Returns a new instance of Data.
9 10 11 |
# File 'lib/appfigures/data.rb', line 9 def initialize(username, password) @auth = {:username => username, :password => password} end |
Instance Method Details
#categories ⇒ Object
13 14 15 |
# File 'lib/appfigures/data.rb', line 13 def categories self.class.get("/data/categories", {:basic_auth => @auth}) end |
#currencies ⇒ Object
25 26 27 |
# File 'lib/appfigures/data.rb', line 25 def currencies self.class.get("/data/currencies", {:basic_auth => @auth}) end |
#languages ⇒ Object
21 22 23 |
# File 'lib/appfigures/data.rb', line 21 def languages self.class.get("/data/languages", {:basic_auth => @auth}) end |
#stores ⇒ Object
17 18 19 |
# File 'lib/appfigures/data.rb', line 17 def stores self.class.get("/data/stores", {:basic_auth => @auth}) end |