Class: SoftLayer::ResultLimit

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



63
64
65
66
67
# File 'lib/softlayer/util.rb', line 63

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.



60
61
62
# File 'lib/softlayer/util.rb', line 60

def limit
  @limit
end

#offsetObject

Returns the value of attribute offset.



60
61
62
# File 'lib/softlayer/util.rb', line 60

def offset
  @offset
end

Instance Method Details

#on_simple_outboundObject



69
70
71
# File 'lib/softlayer/util.rb', line 69

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