Class: Mistilteinn::Ticket::Entry
- Inherits:
-
Struct
- Object
- Struct
- Mistilteinn::Ticket::Entry
- Defined in:
- lib/mistilteinn/ticket/entry.rb,
lib/mistilteinn/ticket/entry.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/mistilteinn/ticket/entry.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/mistilteinn/ticket/entry.rb', line 5 def name @name end |
#status ⇒ Object
Returns the value of attribute status
5 6 7 |
# File 'lib/mistilteinn/ticket/entry.rb', line 5 def status @status end |
Instance Method Details
#format ⇒ Object
8 9 10 |
# File 'lib/mistilteinn/ticket/entry.rb', line 8 def format "#{id} #{name} [#{status}]" end |