Class: MarketingCloudSDK::ET_GetSupport

Inherits:
ET_BaseObject show all
Defined in:
lib/new.rb

Instance Attribute Summary collapse

Attributes inherited from ET_BaseObject

#authStub, #endpoint, #lastRequestID, #obj, #props

Instance Method Summary collapse

Methods inherited from ET_BaseObject

#initialize

Constructor Details

This class inherits a constructor from MarketingCloudSDK::ET_BaseObject

Instance Attribute Details

#filterObject

Returns the value of attribute filter.



591
592
593
# File 'lib/new.rb', line 591

def filter
  @filter
end

Instance Method Details

#get(props = nil, filter = nil) ⇒ Object



593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
# File 'lib/new.rb', line 593

def get(props = nil, filter = nil)
  if props and props.is_a? Array then
    @props = props
  end

  if @props and @props.is_a? Hash then
    @props = @props.keys
  end

  if filter and filter.is_a? Hash then
    @filter = filter
  end
  obj = ET_Get.new(@authStub, @obj, @props, @filter)

  @lastRequestID = obj.request_id

  return obj
end

#getMoreResultsObject



616
617
618
# File 'lib/new.rb', line 616

def getMoreResults()
  ET_Continue.new(@authStub, @lastRequestID)
end

#infoObject



612
613
614
# File 'lib/new.rb', line 612

def info()
  ET_Describe.new(@authStub, @obj)
end