Class: ODDB::Remote::Business::Company

Inherits:
Object
  • Object
show all
Defined in:
lib/oddb/remote/business/company.rb

Instance Attribute Summary

Attributes inherited from Object

#remote, #source

Instance Method Summary collapse

Methods inherited from Object

delegate, #initialize, #uid

Constructor Details

This class inherits a constructor from ODDB::Remote::Object

Instance Method Details

#nameObject



12
13
14
# File 'lib/oddb/remote/business/company.rb', line 12

def name
  @name ||= ODDB::Util::Multilingual.new(:de => @remote.name)
end

#productsObject



15
16
17
18
19
# File 'lib/oddb/remote/business/company.rb', line 15

def products
  @products ||= @remote.registrations.collect do |reg|
    Remote::Drugs::Product.new(@source, reg)
  end
end