Class: Bitsy::V1::PaymentDepotsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/bitsy/v1/payment_depots_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



15
16
17
18
19
20
# File 'app/controllers/bitsy/v1/payment_depots_controller.rb', line 15

def create
  @payment_depot = CreatePaymentDepot.
    execute(params: payment_depot_params).
    payment_depot
  render json: @payment_depot
end

#indexObject



5
6
7
8
# File 'app/controllers/bitsy/v1/payment_depots_controller.rb', line 5

def index
  @payment_depots = PaymentDepot.all
  render json: @payment_depots
end

#showObject



10
11
12
13
# File 'app/controllers/bitsy/v1/payment_depots_controller.rb', line 10

def show
  @payment_depot = PaymentDepot.find(params[:id])
  render json: @payment_depot
end