class SDM::Tag
Attributes
name[RW]
value[RW]
Public Class Methods
new( name: nil, value: nil )
click to toggle source
# File lib/models/porcelain.rb, line 123 def initialize( name: nil, value: nil ) if name != nil @name = name end if value != nil @value = value end end
Public Instance Methods
to_json(options = {})
click to toggle source
# File lib/models/porcelain.rb, line 135 def to_json(options = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end