Class: SoftLayer::ResultLimit

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#limitObject

Returns the value of attribute limit.



146
147
148
# File 'lib/softlayer.rb', line 146

def limit
  @limit
end

#offsetObject

Returns the value of attribute offset.



146
147
148
# File 'lib/softlayer.rb', line 146

def offset
  @offset
end

Instance Method Details

#on_simple_outboundObject



155
156
157
# File 'lib/softlayer.rb', line 155

def on_simple_outbound
  { 'limit' => @limit, 'offset' => @offset }
end