Property¶
Constants¶
Methods¶
- #[]
Returning nil when we get ActiveAttr::UnknownAttributeError from ActiveAttr
def read_attribute(name) super(name) rescue ActiveAttr::UnknownAttributeError nil end
- #_persisted_obj
Returns the value of attribute _persisted_obj
def _persisted_obj @_persisted_obj end
#end_node
alias_method :end_node, :to_node
#from_node_neo_id
alias_method :from_node_neo_id, :start_node_neo_id
#initialize
def initialize(attributes = nil) super(attributes) send_props(@relationship_props) unless @relationship_props.nil? end
- #read_attribute
Returning nil when we get ActiveAttr::UnknownAttributeError from ActiveAttr
def read_attribute(name) super(name) rescue ActiveAttr::UnknownAttributeError nil end
#rel_type
def type self.class.type end
#send_props
def send_props(hash) return hash if hash.blank? hash.each { |key, value| self.send("#{key}=", value) } end
#start_node
alias_method :start_node, :from_node
#to_node_neo_id
alias_method :to_node_neo_id, :end_node_neo_id
#type
def type self.class.type end