Class: Ygg::Link

Inherits:
Model show all
Defined in:
lib/ygg/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#*, #<, #>, #_finalize!, #_id, #_loading!, all, #destroy, #initialize, key, #link_with, #links, #sources, #targets, timestamps!, validator

Constructor Details

This class inherits a constructor from Ygg::Model

Instance Attribute Details

#infoObject

Returns the value of attribute info.



175
176
177
# File 'lib/ygg/base.rb', line 175

def info
  @info
end

#sourceObject

Returns the value of attribute source.



175
176
177
# File 'lib/ygg/base.rb', line 175

def source
  @source
end

#targetObject

Returns the value of attribute target.



175
176
177
# File 'lib/ygg/base.rb', line 175

def target
  @target
end

Instance Method Details

#&(data) ⇒ Object



176
# File 'lib/ygg/base.rb', line 176

def &(data); @info = data; end