Class: Crunchbase::SearchResult
- Inherits:
-
EntityListItem
- Object
- EntityListItem
- Crunchbase::SearchResult
- Defined in:
- lib/crunchbase/search_result.rb
Overview
Represents a single search result arising from a Search. The information returned from a search includes the name, namespace (i.e. entity type), permalink, and an overview. You may also choose to retrieve the full entity with the entity method.
Instance Attribute Summary collapse
-
#crunchbase_url ⇒ Object
readonly
Returns the value of attribute crunchbase_url.
-
#overview ⇒ Object
readonly
Returns the value of attribute overview.
Attributes inherited from EntityListItem
Instance Method Summary collapse
-
#initialize(json) ⇒ SearchResult
constructor
A new instance of SearchResult.
Methods inherited from EntityListItem
#entity, #first_name, #last_name, #name
Constructor Details
#initialize(json) ⇒ SearchResult
Returns a new instance of SearchResult.
9 10 11 12 13 |
# File 'lib/crunchbase/search_result.rb', line 9 def initialize(json) super @crunchbase_url = json["crunchbase_url"] @overview = json["overview"] end |
Instance Attribute Details
#crunchbase_url ⇒ Object (readonly)
Returns the value of attribute crunchbase_url.
7 8 9 |
# File 'lib/crunchbase/search_result.rb', line 7 def crunchbase_url @crunchbase_url end |
#overview ⇒ Object (readonly)
Returns the value of attribute overview.
7 8 9 |
# File 'lib/crunchbase/search_result.rb', line 7 def overview @overview end |