Class: DynamicsCRM::FetchXml::LinkEntity
- Defined in:
- lib/dynamics_crm/fetch_xml/link_entity.rb
Instance Attribute Summary collapse
-
#alias ⇒ Object
Returns the value of attribute alias.
-
#from ⇒ Object
Returns the value of attribute from.
-
#link_type ⇒ Object
Returns the value of attribute link_type.
-
#to ⇒ Object
Returns the value of attribute to.
Attributes inherited from Entity
#attributes, #conditions, #link_entities, #logical_name, #order_desc, #order_field
Instance Method Summary collapse
-
#initialize(logical_name, options = {}) ⇒ LinkEntity
constructor
A new instance of LinkEntity.
Methods inherited from Entity
#add_attributes, #add_condition, #has_conditions?, #link_entity, #order
Constructor Details
#initialize(logical_name, options = {}) ⇒ LinkEntity
Returns a new instance of LinkEntity.
6 7 8 9 10 11 12 |
# File 'lib/dynamics_crm/fetch_xml/link_entity.rb', line 6 def initialize(logical_name, ={}) super @from = [:from]|| "#{logical_name}id" @to = [:to] || "#{logical_name}id" @alias = [:alias] || logical_name @link_type = [:link_type] || "inner" end |
Instance Attribute Details
#alias ⇒ Object
Returns the value of attribute alias.
4 5 6 |
# File 'lib/dynamics_crm/fetch_xml/link_entity.rb', line 4 def alias @alias end |
#from ⇒ Object
Returns the value of attribute from.
4 5 6 |
# File 'lib/dynamics_crm/fetch_xml/link_entity.rb', line 4 def from @from end |
#link_type ⇒ Object
Returns the value of attribute link_type.
4 5 6 |
# File 'lib/dynamics_crm/fetch_xml/link_entity.rb', line 4 def link_type @link_type end |
#to ⇒ Object
Returns the value of attribute to.
4 5 6 |
# File 'lib/dynamics_crm/fetch_xml/link_entity.rb', line 4 def to @to end |