Class: CityGrid::Listing
Defined Under Namespace
Modules: LoadedMethods
Class Method Summary
collapse
Instance Method Summary
collapse
new
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object
14
15
16
17
18
19
20
21
22
|
# File 'lib/citygrid/listing.rb', line 14
def method_missing meth, *args, &block
if @loaded
super
else
@loaded = true
load
send(meth, *args, &block)
end
end
|
Class Method Details
.all(opts = {}) ⇒ Object
9
10
11
|
# File 'lib/citygrid/listing.rb', line 9
def all opts = {}
MultiDetails.new opts
end
|
.first(opts = {}) ⇒ Object
5
6
7
|
# File 'lib/citygrid/listing.rb', line 5
def first opts = {}
new({}).update Details.new(opts)
end
|