class Pohoda::Parsers::LCon::ListContractType2

Public Instance Methods

contract() click to toggle source
# File lib/pohoda/parsers/l_con/list_contract_type2.rb, line 7
def contract
  array_of_at(Con::ContractType, ['lCon:contract'])
end
to_h() click to toggle source
Calls superclass method
# File lib/pohoda/parsers/l_con/list_contract_type2.rb, line 11
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:contract] = contract.map(&:to_h) if has? 'lCon:contract'

  hash
  super.merge(hash)
end