Class: SoftLayer::ObjectMask

Inherits:
SOAP::Header::SimpleHandler
  • Object
show all
Defined in:
lib/softlayer.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.



127
128
129
130
# File 'lib/softlayer.rb', line 127

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

Instance Method Details

#[](k) ⇒ Object



136
137
138
# File 'lib/softlayer.rb', line 136

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

#[]=(k, v) ⇒ Object



140
141
142
# File 'lib/softlayer.rb', line 140

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

#on_simple_outboundObject



132
133
134
# File 'lib/softlayer.rb', line 132

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