Class: SoftLayer::ResultLimit
- Inherits:
-
SOAP::Header::SimpleHandler
- Object
- SOAP::Header::SimpleHandler
- SoftLayer::ResultLimit
- Defined in:
- lib/softlayer.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#offset ⇒ Object
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(tag, limit) ⇒ ResultLimit
constructor
limit should be an array of two elements; limit and offset.
- #on_simple_outbound ⇒ Object
Constructor Details
#initialize(tag, limit) ⇒ ResultLimit
limit should be an array of two elements; limit and offset.
149 150 151 152 153 |
# File 'lib/softlayer.rb', line 149 def initialize(tag, limit) @limit = limit[0] @offset = limit[1] super(XSD::QName.new(nil, tag)) end |
Instance Attribute Details
#limit ⇒ Object
Returns the value of attribute limit.
146 147 148 |
# File 'lib/softlayer.rb', line 146 def limit @limit end |
#offset ⇒ Object
Returns the value of attribute offset.
146 147 148 |
# File 'lib/softlayer.rb', line 146 def offset @offset end |
Instance Method Details
#on_simple_outbound ⇒ Object
155 156 157 |
# File 'lib/softlayer.rb', line 155 def on_simple_outbound { 'limit' => @limit, 'offset' => @offset } end |