Class: Crunchbase::SearchResult

Inherits:
EntityListItem show all
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

Attributes inherited from EntityListItem

#namespace, #permalink

Instance Method Summary collapse

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_urlObject (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

#overviewObject (readonly)

Returns the value of attribute overview.



7
8
9
# File 'lib/crunchbase/search_result.rb', line 7

def overview
  @overview
end