Class: UrbanLexicophile::Definition
- Inherits:
-
Object
- Object
- UrbanLexicophile::Definition
- Defined in:
- lib/urbanlexicophile/definition.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#downvotes ⇒ Object
Returns the value of attribute downvotes.
-
#example ⇒ Object
Returns the value of attribute example.
-
#title ⇒ Object
Returns the value of attribute title.
-
#upvotes ⇒ Object
Returns the value of attribute upvotes.
Instance Method Summary collapse
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
3 4 5 |
# File 'lib/urbanlexicophile/definition.rb', line 3 def @author end |
#definition ⇒ Object
Returns the value of attribute definition.
3 4 5 |
# File 'lib/urbanlexicophile/definition.rb', line 3 def definition @definition end |
#downvotes ⇒ Object
Returns the value of attribute downvotes.
3 4 5 |
# File 'lib/urbanlexicophile/definition.rb', line 3 def downvotes @downvotes end |
#example ⇒ Object
Returns the value of attribute example.
3 4 5 |
# File 'lib/urbanlexicophile/definition.rb', line 3 def example @example end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/urbanlexicophile/definition.rb', line 3 def title @title end |
#upvotes ⇒ Object
Returns the value of attribute upvotes.
3 4 5 |
# File 'lib/urbanlexicophile/definition.rb', line 3 def upvotes @upvotes end |
Instance Method Details
#score ⇒ Object
5 6 7 |
# File 'lib/urbanlexicophile/definition.rb', line 5 def score return upvotes-downvotes end |