module DaisybillApi::Ext::Links::ClassMethods
Public Instance Methods
link(name, options = {})
click to toggle source
# File lib/daisybill_api/ext/links.rb, line 8 def link(name, options = {}) clazz = modulize options[:class] links[name] = l = Link.new name, clazz, options attribute l.foreign_key, :integer if l.foreign_key? define_method(name) { read_link(name).value } end
links()
click to toggle source
# File lib/daisybill_api/ext/links.rb, line 15 def links @links ||= {} end