Class: Symgate::Metadata::DataItem
- Defined in:
- lib/symgate/metadata/data_item.rb
Overview
meta data item
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Type
#==, hash_value_with_optional_namespace, #initialize
Constructor Details
This class inherits a constructor from Symgate::Type
Class Method Details
.from_soap(hash) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/symgate/metadata/data_item.rb', line 7 def self.from_soap(hash) Symgate::Metadata::DataItem.new( key: hash[:@key], scope: hash[:@scope], value: hash_value_with_optional_namespace(:auth, :value, hash) ) end |
Instance Method Details
#to_s ⇒ Object
23 24 25 |
# File 'lib/symgate/metadata/data_item.rb', line 23 def to_s "{DataItem (scope: #{scope}, key #{key}, value #{value})}" end |
#to_soap ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/symgate/metadata/data_item.rb', line 15 def to_soap { s(@key) => key, s(@scope) => scope, s(auth:value) => value } end |