Class: AbstractGraph::Composition::UniqueNameCollection::Ticket

Inherits:
Object
  • Object
show all
Defined in:
lib/abstract_graph/composition/unique_name_collection/ticket.rb,
lib/abstract_graph/composition/unique_name_collection/ticket/get.rb,
lib/abstract_graph/composition/unique_name_collection/ticket/set.rb,
lib/abstract_graph/composition/unique_name_collection/ticket/initialize.rb

Overview

d: This is the ticket for the nameserver in UNC

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(number) ⇒ Ticket

d: Returns the Ticket object a: Sets number t: constant p: number to initialize with r: self



13
14
15
# File 'lib/abstract_graph/composition/unique_name_collection/ticket/initialize.rb', line 13

def initialize( number )
  @number = number
end

Instance Attribute Details

#numberObject

Returns the value of attribute number.



9
10
11
# File 'lib/abstract_graph/composition/unique_name_collection/ticket.rb', line 9

def number
  @number
end

Instance Method Details

#getObject

d: Returns the number a: t: constant p: r: @number



13
14
15
# File 'lib/abstract_graph/composition/unique_name_collection/ticket/get.rb', line 13

def get
  @number
end

#set(number) ⇒ Object

d: Sets the Ticket number. a: Sets number t: constant p: number to set to r: self



13
14
15
# File 'lib/abstract_graph/composition/unique_name_collection/ticket/set.rb', line 13

def set( number )
  @number = number
end