Class: Appfigures::Data

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

Instance Method Summary collapse

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

#categoriesObject



13
14
15
# File 'lib/appfigures/data.rb', line 13

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

#currenciesObject



25
26
27
# File 'lib/appfigures/data.rb', line 25

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

#languagesObject



21
22
23
# File 'lib/appfigures/data.rb', line 21

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

#storesObject



17
18
19
# File 'lib/appfigures/data.rb', line 17

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