Class: ODDB::Interaction::AbstractLink

Inherits:
Object
  • Object
show all
Includes:
OddbYaml
Defined in:
src/plugin/interaction.rb,
ext/export/src/oddb_yaml.rb,
src/model/cyp450connection.rb

Constant Summary

EXPORT_PROPERTIES =
[
  '@info',
  '@href',
  '@text',
]

Constants included from OddbYaml

EXPORT_PROPERTIES, YAML_URI

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from OddbYaml

#to_yaml_properties, #to_yaml_type

Instance Attribute Details

- (Object) href

Returns the value of attribute href



14
15
16
# File 'src/plugin/interaction.rb', line 14

def href
  @href
end

- (Object) info

Returns the value of attribute info



14
15
16
# File 'src/plugin/interaction.rb', line 14

def info
  @info
end

- (Object) text

Returns the value of attribute text



14
15
16
# File 'src/plugin/interaction.rb', line 14

def text
  @text
end

Instance Method Details

- (Boolean) empty?

Returns:

  • (Boolean)


10
11
12
# File 'src/model/cyp450connection.rb', line 10

def empty?
  @href.to_s.empty? && @text.to_s.empty?
end

- (Boolean) eql?(other) Also known as: ==

Returns:

  • (Boolean)


13
14
15
# File 'src/model/cyp450connection.rb', line 13

def eql?(other)
  @href.eql? other.href
end

- (Object) hash



17
18
19
# File 'src/model/cyp450connection.rb', line 17

def hash
  @href.hash
end