Class: MDEXClient::MData::AggregateRecord

Inherits:
Record
  • Object
show all
Defined in:
lib/mdex_client/mdata/aggregate_record.rb

Instance Attribute Summary collapse

Attributes inherited from Record

#attributes, #id, #snippets

Attributes inherited from Node

#element

Instance Method Summary collapse

Methods inherited from Record

#initialize

Methods inherited from Node

#css, #dimension_value_state_list, #initialize, #property_list, #record_list, #xpath

Constructor Details

This class inherits a constructor from MDEXClient::MData::Record

Instance Attribute Details

#constituent_recordsObject

Returns the value of attribute constituent_records.



6
7
8
# File 'lib/mdex_client/mdata/aggregate_record.rb', line 6

def constituent_records
  @constituent_records
end

#derived_propertiesObject

Returns the value of attribute derived_properties.



6
7
8
# File 'lib/mdex_client/mdata/aggregate_record.rb', line 6

def derived_properties
  @derived_properties
end

#records_in_aggregateObject

Returns the value of attribute records_in_aggregate.



6
7
8
# File 'lib/mdex_client/mdata/aggregate_record.rb', line 6

def records_in_aggregate
  @records_in_aggregate
end

Instance Method Details

#initialize_from_element!Object



8
9
10
11
12
# File 'lib/mdex_client/mdata/aggregate_record.rb', line 8

def initialize_from_element!
  @records_in_aggregate = @element["RecordsInAggregate"].to_i
  @derived_properties = property_list("mdata:DerivedProperties/mdata:Property")
  @constituent_records = record_list("mdata:ConstituentRecords")
end