class Pepipost::EmailDetails
Attributes
content[RW]
TODO: Write general description for this method @return [String]
from[RW]
TODO: Write general description for this method @return [String]
fromname[RW]
TODO: Write general description for this method @return [String]
replytoid[RW]
TODO: Write general description for this method @return [String]
subject[RW]
TODO: Write general description for this method @return [String]
Public Instance Methods
key_map()
click to toggle source
Defines the key map for json serialization
# File lib/pepipost/models/email_details.rb, line 38 def key_map hash = {} hash['fromname'] = fromname hash['subject'] = subject hash['from'] = from hash['replytoid'] = replytoid hash['tags'] = tags hash['content'] = content hash end
method_missing(method_name)
click to toggle source
# File lib/pepipost/models/email_details.rb, line 27 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/email_details.rb, line 32 def to_json hash = key_map hash.to_json end