Class: DynamicsCRM::Metadata::RetrieveAllEntitiesResponse

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

Overview

Retrieve All Entities returns a list of EntityMetadata

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

Returns a new instance of RetrieveAllEntitiesResponse.



8
9
10
11
12
13
14
15
16
# File 'lib/dynamics_crm/metadata/retrieve_all_entities_response.rb', line 8

def initialize(xml)
  super
  @entities = []
  # Single KeyValuePair of EntityMetadata -> [EntityMetdata,...]
  self.delete("EntityMetadata").each do |em_xml|
    @entities << EntityMetadata.new(em_xml)
  end

end

Dynamic Method Handling

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

Instance Attribute Details

#entitiesObject (readonly)

Returns the value of attribute entities.



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

def entities
  @entities
end