Class: DynamicsCRM::FetchXml::LinkEntity

Inherits:
Entity
  • Object
show all
Defined in:
lib/dynamics_crm/fetch_xml/link_entity.rb

Instance Attribute Summary collapse

Attributes inherited from Entity

#attributes, #conditions, #link_entities, #logical_name, #order_desc, #order_field

Instance Method Summary collapse

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, options={})
    super
    @from = options[:from]|| "#{logical_name}id"
    @to = options[:to] || "#{logical_name}id"
    @alias = options[:alias] || logical_name
    @link_type = options[:link_type] || "inner"
end

Instance Attribute Details

#aliasObject

Returns the value of attribute alias.



4
5
6
# File 'lib/dynamics_crm/fetch_xml/link_entity.rb', line 4

def alias
  @alias
end

#fromObject

Returns the value of attribute from.



4
5
6
# File 'lib/dynamics_crm/fetch_xml/link_entity.rb', line 4

def from
  @from
end

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

#toObject

Returns the value of attribute to.



4
5
6
# File 'lib/dynamics_crm/fetch_xml/link_entity.rb', line 4

def to
  @to
end