Class: Hws::PaymentOperationsDemo::Users

Inherits:
Object
  • Object
show all
Defined in:
lib/hws/payment_operations_demo/users.rb

Overview

:nodoc:

Instance Method Summary collapse

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, tags)
  Hws::Stores.create_owner(name: name, description: description, tags: 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, tags)
end