Class: QuickCite::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Result

Returns a new instance of Result.



18
19
20
# File 'lib/quickcite.rb', line 18

def initialize(hash)
  super(*hash.values_at(:title, :venue, :authors, :url, :date))
end

Instance Attribute Details

#authorsObject

Returns the value of attribute authors

Returns:

  • (Object)

    the current value of authors



17
18
19
# File 'lib/quickcite.rb', line 17

def authors
  @authors
end

#dateObject

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



17
18
19
# File 'lib/quickcite.rb', line 17

def date
  @date
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



17
18
19
# File 'lib/quickcite.rb', line 17

def title
  @title
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



17
18
19
# File 'lib/quickcite.rb', line 17

def url
  @url
end

#venueObject

Returns the value of attribute venue

Returns:

  • (Object)

    the current value of venue



17
18
19
# File 'lib/quickcite.rb', line 17

def venue
  @venue
end