Class: Thales::Pse::Slot

Inherits:
Object
  • Object
show all
Defined in:
lib/thales/pse/slot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ Slot

Returns a new instance of Slot.



9
10
11
# File 'lib/thales/pse/slot.rb', line 9

def initialize(id)
  @id = id
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/thales/pse/slot.rb', line 8

def id
  @id
end

#tokenObject (readonly)

Returns the value of attribute token.



8
9
10
# File 'lib/thales/pse/slot.rb', line 8

def token
  @token
end

Instance Method Details

#default_tokenObject



13
14
15
16
17
18
# File 'lib/thales/pse/slot.rb', line 13

def default_token
  if @token.nil?
    @token = Token.new(self)
  end
  @token
end