class Symgate::Cml::Symbol
defines the cml symbol information for a concept
Public Class Methods
from_soap(hash)
click to toggle source
# File lib/symgate/cml/symbol.rb, line 7 def self.from_soap(hash) Symgate::Cml::Symbol.new( symset: hash_value_with_optional_namespace(:cml, :symset, hash), main: hash_value_with_optional_namespace(:cml, :main, hash), top_left: hash_value_with_optional_namespace(:cml, :top_left, hash), top_right: hash_value_with_optional_namespace(:cml, :top_right, hash), bottom_left: hash_value_with_optional_namespace(:cml, :bottom_left, hash), bottom_right: hash_value_with_optional_namespace(:cml, :bottom_right, hash), full_left: hash_value_with_optional_namespace(:cml, :full_left, hash), full_right: hash_value_with_optional_namespace(:cml, :full_right, hash), top: hash_value_with_optional_namespace(:cml, :top, hash), extra: hash_value_with_optional_namespace(:cml, :extra, hash) ) end
Public Instance Methods
to_s()
click to toggle source
# File lib/symgate/cml/symbol.rb, line 37 def to_s "Symbol: #{@main}" end
to_soap()
click to toggle source
# File lib/symgate/cml/symbol.rb, line 22 def to_soap { :cml:symset => symset, :cml:main => main, :cml:top_left => top_left, :cml:top_right => top_right, :cml:bottom_left => bottom_left, :cml:bottom_right => bottom_right, :cml:full_left => full_left, :cml:full_right => full_right, :cml:top => top, :cml:extra => extra }.delete_if { |_, v| v.nil? } end
Protected Instance Methods
attributes()
click to toggle source
# File lib/symgate/cml/symbol.rb, line 43 def attributes %i[symset main top_left top_right bottom_left bottom_right full_left full_right top extra] end