Class: OperaContacts::Item
- Inherits:
-
Object
- Object
- OperaContacts::Item
- Defined in:
- lib/opera-contacts/contacts.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#created ⇒ Object
Returns the value of attribute created.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id, name, created = Time.new, description = '') ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(id, name, created = Time.new, description = '') ⇒ Item
Returns a new instance of Item.
6 7 8 9 10 11 |
# File 'lib/opera-contacts/contacts.rb', line 6 def initialize(id, name, created=Time.new, description='') @id = id @name = name @created = created @description = description end |
Instance Attribute Details
#created ⇒ Object
Returns the value of attribute created.
5 6 7 |
# File 'lib/opera-contacts/contacts.rb', line 5 def created @created end |
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/opera-contacts/contacts.rb', line 5 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/opera-contacts/contacts.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/opera-contacts/contacts.rb', line 5 def name @name end |