Class: Person
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Person
- Defined in:
- lib/nvd/feed/cve.rb
Instance Attribute Summary collapse
-
#age ⇒ Object
Returns the value of attribute age.
-
#gender ⇒ Object
Returns the value of attribute gender.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#age ⇒ Object
Returns the value of attribute age.
89 90 91 |
# File 'lib/nvd/feed/cve.rb', line 89 def age @age end |
#gender ⇒ Object
Returns the value of attribute gender.
89 90 91 |
# File 'lib/nvd/feed/cve.rb', line 89 def gender @gender end |
#name ⇒ Object
Returns the value of attribute name.
89 90 91 |
# File 'lib/nvd/feed/cve.rb', line 89 def name @name end |
Instance Method Details
#eat(meal = "bacon and eggs") ⇒ Object
101 102 103 |
# File 'lib/nvd/feed/cve.rb', line 101 def eat(meal="bacon and eggs") puts "I'm sitting down to eat #{meal}" end |
#slumber(num = 10) ⇒ Object
94 95 96 97 98 99 |
# File 'lib/nvd/feed/cve.rb', line 94 def slumber(num=10) puts "going to sleep" sleep num puts "waking up" sleep num/10 end |
#work ⇒ Object
90 91 92 |
# File 'lib/nvd/feed/cve.rb', line 90 def work puts "POOF! Eight more hours gone!" end |