Class: QuickCite::Result
- Inherits:
-
Struct
- Object
- Struct
- QuickCite::Result
- Defined in:
- lib/quickcite.rb
Instance Attribute Summary collapse
-
#authors ⇒ Object
Returns the value of attribute authors.
-
#date ⇒ Object
Returns the value of attribute date.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
-
#venue ⇒ Object
Returns the value of attribute venue.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Result
constructor
A new instance of Result.
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
#authors ⇒ Object
Returns the value of attribute authors
17 18 19 |
# File 'lib/quickcite.rb', line 17 def end |
#date ⇒ Object
Returns the value of attribute date
17 18 19 |
# File 'lib/quickcite.rb', line 17 def date @date end |
#title ⇒ Object
Returns the value of attribute title
17 18 19 |
# File 'lib/quickcite.rb', line 17 def title @title end |
#url ⇒ Object
Returns the value of attribute url
17 18 19 |
# File 'lib/quickcite.rb', line 17 def url @url end |
#venue ⇒ Object
Returns the value of attribute venue
17 18 19 |
# File 'lib/quickcite.rb', line 17 def venue @venue end |