Sha256: e709cecfeb50f089d7e460ed4b5aec4eb2813a87936b8c63c6d11ee57e67bf17

Contents?: true

Size: 413 Bytes

Versions: 4

Compression:

Stored size: 413 Bytes

Contents

module Printfection
  class Campaign < Resource
    include Hashie::Extensions::Coercion
    extend Actions::Retrieve
    extend Actions::List

    property :id, transform_with: Transforms::Integer
    property :name
    property :type
    property :active
    property :archived
    property :url
    property :created_at, transform_with: Transforms::Date

    def self.uri
      "/campaigns"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
printfection-1.0.3 lib/printfection/campaign.rb
printfection-1.0.2 lib/printfection/campaign.rb
printfection-1.0.1 lib/printfection/campaign.rb
printfection-1.0.0 lib/printfection/campaign.rb