Sha256: 3d86bb221b9eebf822723d15d3fc19e1e975c5a21e05d9de885e18ba518ba59f

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

module Billplz
  class Collection < Model
    before_request :set_base_url
    #before_request :replace_body

    post :create, "/collections/"
    post :create_open_collection, "/open_collections"
    post :deactivate, "/collections/:id/deactivate"
    post :activate, "/collections/:id/activate"

    private

    def set_base_url(name, request)
      Flexirest::Base.base_url = "#{Billplz.configuration.api_url}"
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
billplz-api-0.1.0 lib/billplz/collection.rb