Class: FuelSDK::ET_Describe
- Inherits:
-
ET_Constructor
- Object
- ET_Constructor
- FuelSDK::ET_Describe
- Defined in:
- lib/new.rb
Instance Attribute Summary
Attributes inherited from ET_Constructor
#code, #message, #moreResults, #request_id, #results, #status
Instance Method Summary collapse
-
#initialize(authStub = nil, objType = nil) ⇒ ET_Describe
constructor
A new instance of ET_Describe.
Constructor Details
#initialize(authStub = nil, objType = nil) ⇒ ET_Describe
Returns a new instance of ET_Describe.
338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 |
# File 'lib/new.rb', line 338 def initialize(authStub = nil, objType = nil) begin authStub.refreshToken response = authStub.auth.call(:describe, :message => { 'DescribeRequests' => {'ObjectDefinitionRequest' => {'ObjectType' => objType} } }) ensure super(response) if @status then objDef = @@body[:definition_response_msg][:object_definition] if objDef then @overallStatus = true else @overallStatus = false end @results = @@body[:definition_response_msg][:object_definition][:properties] end end end |