Class: CityGrid::Listing

Inherits:
Abstraction::SuperHash show all
Defined in:
lib/citygrid/listing.rb

Defined Under Namespace

Modules: LoadedMethods

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Abstraction::SuperHash

new

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object



8
9
10
11
# File 'lib/citygrid/listing.rb', line 8

def method_missing meth, *args, &block
  load unless @loaded
  send(meth, *args, &block) rescue super
end

Class Method Details

.load(opts = {}) ⇒ Object



4
5
6
# File 'lib/citygrid/listing.rb', line 4

def self.load opts = {}
  new({}).update Details.new(opts)
end