Class: LibSL::SearchResult

Inherits:
Object
  • Object
show all
Defined in:
lib/search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, query_id, data) ⇒ SearchResult

Returns a new instance of SearchResult.



7
8
9
10
11
# File 'lib/search.rb', line 7

def initialize(type, query_id, data)
	@type = type
	@query_id = query_id
	@data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



5
6
7
# File 'lib/search.rb', line 5

def data
  @data
end

#query_idObject (readonly)

Returns the value of attribute query_id.



5
6
7
# File 'lib/search.rb', line 5

def query_id
  @query_id
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/search.rb', line 5

def type
  @type
end