Sha256: d891caddf6fb79baa17c6d990963ca7971b74070322adbf344c37f942843b4b6
Contents?: true
Size: 652 Bytes
Versions: 1
Compression:
Stored size: 652 Bytes
Contents
module Pepipost class Attributes # TODO: Write general description for this method # @return [Array<String>] attr_accessor :name # TODO: Write general description for this method # @return [Array<String>] attr_accessor :regid def method_missing(method_name) puts "there's no method called '#{method_name}'" end # Creates JSON of the curent object def to_json hash = key_map hash.to_json end # Defines the key map for json serialization def key_map hash = {} hash['NAME'] = name hash['REGID'] = regid hash end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pepipost-0.0.1 | lib/pepipost/models/attributes.rb |