Class: ODDB::View::Companies::TestCompanyList::StubModel

Inherits:
Object
  • Object
show all
Defined in:
test/test_view/companies/companylist.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubModel) initialize(name)

A new instance of StubModel



21
22
23
# File 'test/test_view/companies/companylist.rb', line 21

def initialize(name)
  @name = name
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

- (Object) method_missing(*args)



24
25
26
# File 'test/test_view/companies/companylist.rb', line 24

def method_missing(*args)
  "foo"
end

Instance Attribute Details

- (Object) name (readonly)

Returns the value of attribute name



20
21
22
# File 'test/test_view/companies/companylist.rb', line 20

def name
  @name
end