Class: SoftLayer::ObjectMask

Inherits:
SOAP::Header::SimpleHandler
  • Object
show all
Defined in:
lib/softlayer/util.rb

Overview

A class to hold the object mask.

Instance Method Summary collapse

Constructor Details

#initialize(tag, out) ⇒ ObjectMask

Returns a new instance of ObjectMask.



41
42
43
44
# File 'lib/softlayer/util.rb', line 41

def initialize(tag, out)
  @out = out
  super(XSD::QName.new(nil, tag))
end

Instance Method Details

#[](k) ⇒ Object



50
51
52
# File 'lib/softlayer/util.rb', line 50

def [](k)
  @out[k]
end

#[]=(k, v) ⇒ Object



54
55
56
# File 'lib/softlayer/util.rb', line 54

def []=(k,v)
  @out[k]=v
end

#on_simple_outboundObject



46
47
48
# File 'lib/softlayer/util.rb', line 46

def on_simple_outbound
  { 'mask' => @out }
end