Class: SixthSense::Result::Reference

Inherits:
Struct
  • Object
show all
Defined in:
lib/sixth_sense/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authorsObject

Returns the value of attribute authors

Returns:

  • (Object)

    the current value of authors



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

def authors
  @authors
end

#doiObject

Returns the value of attribute doi

Returns:

  • (Object)

    the current value of doi



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

def doi
  @doi
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



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

def title
  @title
end

#venueObject

Returns the value of attribute venue

Returns:

  • (Object)

    the current value of venue



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

def venue
  @venue
end

#yearObject

Returns the value of attribute year

Returns:

  • (Object)

    the current value of year



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

def year
  @year
end

Instance Method Details

#to_hObject



6
7
8
9
10
11
12
13
14
# File 'lib/sixth_sense/result.rb', line 6

def to_h
  {
    authors: authors,
    title: title,
    venue: venue,
    year: year,
    doi: doi
  }
end