Sha256: ae412d9445f508c9bc89d677f323630c7ae7858d101c6fe3fec72ba31ef52e26
Contents?: true
Size: 382 Bytes
Versions: 3
Compression:
Stored size: 382 Bytes
Contents
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 = DateTime.iso8601(campaign[:created]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
woodpecker-0.1.2 | lib/woodpecker/campaign.rb |
woodpecker-0.1.1 | lib/woodpecker/campaign.rb |
woodpecker-0.1.0 | lib/woodpecker/campaign.rb |