Class: Vend::Store
Instance Method Summary collapse
-
#get(options) ⇒ Object
Dispatch a request using HTTP GET.
-
#initialize(name, username, password) ⇒ Store
constructor
A new instance of Store.
-
#post(options) ⇒ Object
Dispatch a request using HTTP POST.
Methods included from HasResources
Constructor Details
#initialize(name, username, password) ⇒ Store
Returns a new instance of Store.
9 10 11 |
# File 'lib/vend/store.rb', line 9 def initialize name, username, password @name, @credentials = name, [ username, password ] end |
Instance Method Details
#get(options) ⇒ Object
Dispatch a request using HTTP GET
15 16 17 |
# File 'lib/vend/store.rb', line 15 def get dispatch :get, end |
#post(options) ⇒ Object
Dispatch a request using HTTP POST
21 22 23 |
# File 'lib/vend/store.rb', line 21 def post dispatch :post, end |