Sha256: 03d2880674a11174c0febd57e63815d901f5cafe4cd3f188eb60acb9a4ec8c64

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

module Hws
  module PaymentOperationsDemo
    class Users # :nodoc:
      def create(name, description, tags)
        Hws::Stores.create_owner(name: name, description: description, tags: tags)
      end

      def fetch(owner_id)
        Hws::Stores.get_owner(owner_id)
      end

      def update(owner_id, name: nil, description: nil, tags: {})
        Hws::Stores.update_owner(owner_id, name, description, tags)
      end

      def delete(owner_id)
        Hws::Stores.delete(owner_id)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hws-payment_operations_demo-0.1.0 lib/hws/payment_operations_demo/users.rb