Class: Hws::PaymentOperationsDemo::Users
- Inherits:
-
Object
- Object
- Hws::PaymentOperationsDemo::Users
- Defined in:
- lib/hws/payment_operations_demo/users.rb
Overview
:nodoc:
Instance Method Summary collapse
- #create(name, description, tags) ⇒ Object
- #delete(owner_id) ⇒ Object
- #fetch(owner_id) ⇒ Object
- #update(owner_id, name: nil, description: nil, tags: {}) ⇒ Object
Instance Method Details
#create(name, description, tags) ⇒ Object
6 7 8 |
# File 'lib/hws/payment_operations_demo/users.rb', line 6 def create(name, description, ) Hws::Stores.create_owner(name: name, description: description, tags: ) end |
#delete(owner_id) ⇒ Object
18 19 20 |
# File 'lib/hws/payment_operations_demo/users.rb', line 18 def delete(owner_id) Hws::Stores.delete(owner_id) end |
#fetch(owner_id) ⇒ Object
10 11 12 |
# File 'lib/hws/payment_operations_demo/users.rb', line 10 def fetch(owner_id) Hws::Stores.get_owner(owner_id) end |
#update(owner_id, name: nil, description: nil, tags: {}) ⇒ Object
14 15 16 |
# File 'lib/hws/payment_operations_demo/users.rb', line 14 def update(owner_id, name: nil, description: nil, tags: {}) Hws::Stores.update_owner(owner_id, name, description, ) end |