Class: SoftLayer::ObjectMask
- Inherits:
-
SOAP::Header::SimpleHandler
- Object
- SOAP::Header::SimpleHandler
- SoftLayer::ObjectMask
- Defined in:
- lib/softlayer/util.rb
Overview
A class to hold the object mask.
Instance Method Summary collapse
- #[](k) ⇒ Object
- #[]=(k, v) ⇒ Object
-
#initialize(tag, out) ⇒ ObjectMask
constructor
A new instance of ObjectMask.
- #on_simple_outbound ⇒ Object
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_outbound ⇒ Object
46 47 48 |
# File 'lib/softlayer/util.rb', line 46 def on_simple_outbound { 'mask' => @out } end |