Sha256: 6a123fd3fa7b984c498b1c353f6c91c05f34062ffdd63271d63e0c15b473384d

Contents?: true

Size: 216 Bytes

Versions: 2

Compression:

Stored size: 216 Bytes

Contents

module PirschApi
  class UtmSourceResource < BaseResource
    def request_url
      "statistics/utm/source"
    end

    def parse_response(body)
      JSON.parse(body)&.map { |o| UtmSource.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_source.rb
pirsch_api-0.1.0 lib/pirsch_api/resources/statistics/utm_source.rb