Class: Mistilteinn::Ticket::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/mistilteinn/ticket/entry.rb,
lib/mistilteinn/ticket/entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



5
6
7
# File 'lib/mistilteinn/ticket/entry.rb', line 5

def id
  @id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/mistilteinn/ticket/entry.rb', line 5

def name
  @name
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



5
6
7
# File 'lib/mistilteinn/ticket/entry.rb', line 5

def status
  @status
end

Instance Method Details

#formatObject



8
9
10
# File 'lib/mistilteinn/ticket/entry.rb', line 8

def format
  "#{id} #{name} [#{status}]"
end