class Pepipost::Emailv1

Attributes

api_key[RW]

Your secret API Key @return [String]

attributes[RW]

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

email_details[RW]

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

files[RW]

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

recipients[RW]

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

settings[RW]

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

x_apiheader[RW]

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

Public Instance Methods

key_map() click to toggle source

Defines the key map for json serialization

# File lib/pepipost/models/emailv_1.rb, line 42
def key_map
  hash = {}
  hash['api_key'] = api_key
  hash['email_details'] = email_details
  hash['X-APIHEADER'] = x_apiheader
  hash['settings'] = settings
  hash['recipients'] = recipients
  hash['attributes'] = attributes
  hash['files'] = files
  hash
end
method_missing(method_name) click to toggle source
# File lib/pepipost/models/emailv_1.rb, line 31
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/emailv_1.rb, line 36
def to_json
  hash = key_map
  hash.to_json
end