class Megam::KoniPai
Public Class Methods
json_create(o)
click to toggle source
# File lib/megam/core/konipai.rb, line 30 def self.json_create(o) kp = new kp.koni(o) if o != null kp end
new()
click to toggle source
# File lib/megam/core/konipai.rb, line 4 def initialize() @koni = nil end
Public Instance Methods
koni(arg=nil)
click to toggle source
# File lib/megam/core/konipai.rb, line 12 def koni(arg=nil) if arg != nil @koni = arg else @koni end end
konipai()
click to toggle source
# File lib/megam/core/konipai.rb, line 8 def konipai self end
to_hash()
click to toggle source
Transform the ruby obj -> to a Hash
# File lib/megam/core/konipai.rb, line 22 def to_hash index_hash = Hash.new index_hash["json_claz"] = self.class.name index_hash["koni"] = koni index_hash end
to_s()
click to toggle source
# File lib/megam/core/konipai.rb, line 37 def to_s Megam::Stuff.styled_hash(to_hash) end