class Pepipost::Files

Attributes

example_attachment_1_txt[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/files.rb, line 18
def key_map
  hash = {}
  hash['example_attachment1.txt'] = example_attachment_1_txt
  hash
end
method_missing(method_name) click to toggle source
# File lib/pepipost/models/files.rb, line 7
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/files.rb, line 12
def to_json
  hash = key_map
  hash.to_json
end