class MarketoAPI::MObjects::Get
A response object to MObjects#get
that includes the return count, the new stream position, and the list of MObject records.
Attributes
mobjects[R]
The list of Marketo objects.
return_count[R]
The number of MObjects
returned from MObjects#get
.
stream_position[R]
The stream position used for paging in MObjects#get
. This may be shared with each MObject in mobjects
.
Public Class Methods
new(hash)
click to toggle source
# File lib/marketo_api/mobjects.rb, line 91 def initialize(hash) @return_count = hash[:return_count].to_i @more = hash[:has_more] @stream_position = hash[:new_stream_position] objects = MarketoAPI.array(hash[:m_object_list]) @mobjects = objects.map { |object| MarketoAPI::MObject.from_soap_hash(object[:m_object]) } end
Public Instance Methods
more?()
click to toggle source
Returns true
if there are more objects to be returned.
# File lib/marketo_api/mobjects.rb, line 103 def more? !!@more end