Class: FuelSDK::ET_DataExtension::Column
- Inherits:
-
FuelSDK::ET_GetSupport
- Object
- FuelSDK::ET_BaseObject
- FuelSDK::ET_GetSupport
- FuelSDK::ET_DataExtension::Column
- Defined in:
- lib/new.rb
Instance Attribute Summary
Attributes inherited from FuelSDK::ET_GetSupport
Attributes inherited from FuelSDK::ET_BaseObject
#authStub, #endpoint, #lastRequestID, #obj, #props
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize ⇒ Column
constructor
A new instance of Column.
Methods inherited from FuelSDK::ET_GetSupport
Constructor Details
#initialize ⇒ Column
Returns a new instance of Column.
983 984 985 986 |
# File 'lib/new.rb', line 983 def initialize super @obj = 'DataExtensionField' end |
Instance Method Details
#get ⇒ Object
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 |
# File 'lib/new.rb', line 988 def get 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 fixCustomerKey = false if filter and filter.is_a? Hash then @filter = filter if @filter.has_key?("Property") && @filter["Property"] == "CustomerKey" then @filter["Property"] = "DataExtension.CustomerKey" fixCustomerKey = true end end obj = ET_Get.new(@authStub, @obj, @props, @filter) @lastRequestID = obj.request_id if fixCustomerKey then @filter["Property"] = "CustomerKey" end return obj end |