Class: BEL::Resource::Search::SearchResult
- Inherits:
-
Struct
- Object
- Struct
- BEL::Resource::Search::SearchResult
- Defined in:
- lib/bel/resource/search/search_result.rb
Overview
Represents an identifier search result.
Instance Attribute Summary collapse
-
#alt_labels ⇒ Object
Returns the value of attribute alt_labels.
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#pref_label ⇒ Object
Returns the value of attribute pref_label.
-
#scheme_uri ⇒ Object
Returns the value of attribute scheme_uri.
-
#snippet ⇒ Object
Returns the value of attribute snippet.
-
#title ⇒ Object
Returns the value of attribute title.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(*args) ⇒ SearchResult
constructor
A new instance of SearchResult.
Constructor Details
#initialize(*args) ⇒ SearchResult
Returns a new instance of SearchResult.
21 22 23 24 25 26 27 28 |
# File 'lib/bel/resource/search/search_result.rb', line 21 def initialize(*args) if args.length == 1 && args.first.is_a?(Hash) hash = args.first super(*hash.values_at(*self.class.members)) else super end end |
Instance Attribute Details
#alt_labels ⇒ Object
Returns the value of attribute alt_labels
20 21 22 |
# File 'lib/bel/resource/search/search_result.rb', line 20 def alt_labels @alt_labels end |
#identifier ⇒ Object
Returns the value of attribute identifier
20 21 22 |
# File 'lib/bel/resource/search/search_result.rb', line 20 def identifier @identifier end |
#pref_label ⇒ Object
Returns the value of attribute pref_label
20 21 22 |
# File 'lib/bel/resource/search/search_result.rb', line 20 def pref_label @pref_label end |
#scheme_uri ⇒ Object
Returns the value of attribute scheme_uri
20 21 22 |
# File 'lib/bel/resource/search/search_result.rb', line 20 def scheme_uri @scheme_uri end |
#snippet ⇒ Object
Returns the value of attribute snippet
20 21 22 |
# File 'lib/bel/resource/search/search_result.rb', line 20 def snippet @snippet end |
#title ⇒ Object
Returns the value of attribute title
20 21 22 |
# File 'lib/bel/resource/search/search_result.rb', line 20 def title @title end |
#uri ⇒ Object
Returns the value of attribute uri
20 21 22 |
# File 'lib/bel/resource/search/search_result.rb', line 20 def uri @uri end |