Class: DynamicsCRM::Metadata::RetrieveAllEntitiesResponse
- Inherits:
-
Response::ExecuteResult
- Object
- Hash
- Response::Result
- Response::ExecuteResult
- DynamicsCRM::Metadata::RetrieveAllEntitiesResponse
- Defined in:
- lib/dynamics_crm/metadata/retrieve_all_entities_response.rb
Overview
Retrieve All Entities returns a list of EntityMetadata
Instance Attribute Summary collapse
-
#entities ⇒ Object
readonly
Returns the value of attribute entities.
Attributes inherited from Response::Result
Instance Method Summary collapse
-
#initialize(xml) ⇒ RetrieveAllEntitiesResponse
constructor
A new instance of RetrieveAllEntitiesResponse.
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
#entities ⇒ Object (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 |