Class: DynamicsCRM::Metadata::RetrieveEntityResponse

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

Overview

RetrieveEntity returns a single EntityMetadata element.

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) ⇒ RetrieveEntityResponse

Returns a new instance of RetrieveEntityResponse.



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

def initialize(xml)
  super

  # Single KeyValuePair containing 1 value type of EntityMetadata
  @entity = EntityMetadata.new(self["EntityMetadata"])
end

Dynamic Method Handling

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

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



6
7
8
# File 'lib/dynamics_crm/metadata/retrieve_entity_response.rb', line 6

def attributes
  @attributes
end

#entityObject (readonly)

Returns the value of attribute entity.



6
7
8
# File 'lib/dynamics_crm/metadata/retrieve_entity_response.rb', line 6

def entity
  @entity
end