class Pepipost::Settings

Attributes

attachmentid[RW]

TODO: Write general description for this method @return [String]

bcc[RW]

TODO: Write general description for this method @return [String]

clicktrack[RW]

TODO: Write general description for this method @return [Boolean]

opentrack[RW]

TODO: Write general description for this method @return [Boolean]

template[RW]

TODO: Write general description for this method @return [Numeric]

unsubscribe[RW]

TODO: Write general description for this method @return [Boolean]

Public Class Methods

new() click to toggle source
# File lib/pepipost/models/settings.rb, line 31
def initialize
  @footer = true
  @clicktrack = true
  @opentrack = true
  @unsubscribe = true
end

Public Instance Methods

key_map() click to toggle source

Defines the key map for json serialization

# File lib/pepipost/models/settings.rb, line 49
def key_map
  hash = {}
  hash['footer'] = footer
  hash['clicktrack'] = clicktrack
  hash['opentrack'] = opentrack
  hash['unsubscribe'] = unsubscribe
  hash['bcc'] = bcc
  hash['attachmentid'] = attachmentid
  hash['template'] = template
  hash
end
method_missing(method_name) click to toggle source
# File lib/pepipost/models/settings.rb, line 38
def method_missing(method_name)
  puts "there's no method called '#{method_name}'"
end
to_json() click to toggle source

Creates JSON of the curent object

# File lib/pepipost/models/settings.rb, line 43
def to_json
  hash = key_map
  hash.to_json
end