Class: GoodGuide::Gibbon::AbstractClient

Inherits:
Object
  • Object
show all
Defined in:
lib/goodguide/gibbon.rb

Direct Known Subclasses

RuntimeClient, StaticClient

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.queriesObject



280
281
282
# File 'lib/goodguide/gibbon.rb', line 280

def self.queries
  @queries ||= {}
end

.query(type, opts = {}, &impl) ⇒ Object



284
285
286
# File 'lib/goodguide/gibbon.rb', line 284

def self.query(type, opts={}, &impl)
  queries[type.to_s] = impl
end

Instance Method Details

#to_jsObject



288
289
290
# File 'lib/goodguide/gibbon.rb', line 288

def to_js
  raise 'abstract'
end