Sha256: ed101e7f4b9fdb2738e8051db32621cbb2b7f54833b16cb4241cb396c367292e

Contents?: true

Size: 216 Bytes

Versions: 2

Compression:

Stored size: 216 Bytes

Contents

module PirschApi
  class UtmMediumResource < BaseResource
    def request_url
      "statistics/utm/medium"
    end

    def parse_response(body)
      JSON.parse(body)&.map { |o| UtmMedium.new o }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pirsch_api-0.1.1 lib/pirsch_api/resources/statistics/utm_medium.rb
pirsch_api-0.1.0 lib/pirsch_api/resources/statistics/utm_medium.rb