Class: DynamicsCRM::Metadata::RetrieveAttributeResponse

Inherits:
Response::ExecuteResult show all
Defined in:
lib/dynamics_crm/metadata/retrieve_attribute_response.rb

Overview

Retrieve Attribute returns a single AttributeMetadata.

Instance Attribute Summary collapse

Attributes inherited from Response::Result

#document, #result_response

Instance Method Summary collapse

Methods inherited from Response::Result

#method_missing, #parse_result_response, #respond_to_missing?, #response_element

Constructor Details

#initialize(xml) ⇒ RetrieveAttributeResponse

Returns a new instance of RetrieveAttributeResponse.



7
8
9
10
11
12
# File 'lib/dynamics_crm/metadata/retrieve_attribute_response.rb', line 7

def initialize(xml)
  super

  # Single KeyValuePair containing 1 value type of AttributeMetadata
  @attribute = AttributeMetadata.new(self.delete("AttributeMetadata"))
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class DynamicsCRM::Response::Result

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



5
6
7
# File 'lib/dynamics_crm/metadata/retrieve_attribute_response.rb', line 5

def attribute
  @attribute
end