class Pepipost::Attributes

Attributes

name[RW]

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

regid[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/attributes.rb, line 22
def key_map
  hash = {}
  hash['NAME'] = name
  hash['REGID'] = regid
  hash
end
method_missing(method_name) click to toggle source
# File lib/pepipost/models/attributes.rb, line 11
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/attributes.rb, line 16
def to_json
  hash = key_map
  hash.to_json
end