Class: MockNoyesServer::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/common/mock_noyes_server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Session


10
11
12
13
14
# File 'lib/common/mock_noyes_server.rb', line 10

def initialize file
  @file = file
  @data = ''
  @magic = false
end

Instance Attribute Details

#dataObject

Returns the value of attribute data


7
8
9
# File 'lib/common/mock_noyes_server.rb', line 7

def data
  @data
end

#fileObject

Returns the value of attribute file


6
7
8
# File 'lib/common/mock_noyes_server.rb', line 6

def file
  @file
end

#magicObject

Returns the value of attribute magic


8
9
10
# File 'lib/common/mock_noyes_server.rb', line 8

def magic
  @magic
end