Sha256: 7b0f35e3c3a4987b1c48efd754d8464e4ca67697feecdde92a8409312d37ce38

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

module Espago
  class ApiConnection
    class GetSubscriptions
      def initialize(connection)
        @connection = connection
      end

      def request(params = {})
        if params[:subscription_id]
          @connection.get "subscriptions/#{params[:subscription_id]}"
        else
          @connection.get "subscriptions", params
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
espago-0.0.7 lib/espago/api_connection/get_subscriptions.rb