class GrosCalin::Datasource
Attributes
driver[R]
Public Class Methods
new(id, driver, options={})
click to toggle source
# File lib/gros_calin/config.rb, line 30 def initialize(id, driver, options={}) @id = id @driver = driver.new(options) end
Public Instance Methods
hugs()
click to toggle source
# File lib/gros_calin/config.rb, line 35 def hugs @hugs ||= Collection.new end
json()
click to toggle source
# File lib/gros_calin/config.rb, line 39 def json { id: id, driver: driver.id, uri: "/#{id}" } end