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



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



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

def authors
  @authors
end

#dateObject

Returns the value of attribute date



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

def date
  @date
end

#titleObject

Returns the value of attribute title



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

def title
  @title
end

#urlObject

Returns the value of attribute url



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

def url
  @url
end

#venueObject

Returns the value of attribute venue



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

def venue
  @venue
end