Sha256: e4506cfa62758fae1f42ac0d6b1619c6c453fc40932ca6bb7285580c76d3b44c

Contents?: true

Size: 409 Bytes

Versions: 1

Compression:

Stored size: 409 Bytes

Contents

# frozen_string_literal: true

module Woodpecker
  class Campaign
    attr_accessor :id, :name, :status, :from_name, :from_email, :created

    def initialize(campaign)
      @id = campaign[:id]
      @name = campaign[:name]
      @status = campaign[:status]
      @from_name = campaign[:from_name]
      @from_email = campaign[:from_email]
      @created = Time.iso8601(campaign[:created])
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
woodpecker-0.1.3 lib/woodpecker/campaign.rb