Class: Ygg::Link

Inherits:
Model show all
Defined in:
lib/ygg/bck/link.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.



3
4
5
# File 'lib/ygg/bck/link.rb', line 3

def info
  @info
end

#sourceObject

Returns the value of attribute source.



3
4
5
# File 'lib/ygg/bck/link.rb', line 3

def source
  @source
end

#targetObject

Returns the value of attribute target.



3
4
5
# File 'lib/ygg/bck/link.rb', line 3

def target
  @target
end

Instance Method Details

#&(data) ⇒ Object



4
# File 'lib/ygg/bck/link.rb', line 4

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