Sha256: fceb2d18d3e8de2b2180371901e8933fb02a2b831361f43b40f7db88609d55fd

Contents?: true

Size: 714 Bytes

Versions: 6

Compression:

Stored size: 714 Bytes

Contents

# DO NOT EDIT: File is generated by code generator.

require "pokepay_partner_ruby_sdk/response/campaign"

module Pokepay::Request
  class CreateCampaign < Request
    def initialize(name, private_money_id, starts_at, ends_at, priority, event, rest_args = {})
      @path = "/campaigns"
      @method = "POST"
      @body_params = { "name" => name,
                       "private_money_id" => private_money_id,
                       "starts_at" => starts_at,
                       "ends_at" => ends_at,
                       "priority" => priority,
                       "event" => event }.merge(rest_args)
      @response_class = Pokepay::Response::Campaign
    end
    attr_reader :response_class
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pokepay_partner_ruby_sdk-0.3.2 lib/pokepay_partner_ruby_sdk/request/create_campaign.rb
pokepay_partner_ruby_sdk-0.3.1 lib/pokepay_partner_ruby_sdk/request/create_campaign.rb
pokepay_partner_ruby_sdk-0.3.0 lib/pokepay_partner_ruby_sdk/request/create_campaign.rb
pokepay_partner_ruby_sdk-0.2.0 lib/pokepay_partner_ruby_sdk/request/create_campaign.rb
pokepay_partner_ruby_sdk-0.1.19 lib/pokepay_partner_ruby_sdk/request/create_campaign.rb
pokepay_partner_ruby_sdk-0.1.18 lib/pokepay_partner_ruby_sdk/request/create_campaign.rb