Class: Tramp::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/tramp/status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record, success) ⇒ Status

Returns a new instance of Status.


6
7
8
9
# File 'lib/tramp/status.rb', line 6

def initialize(record, success)
  @record = record
  @success = success
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record


4
5
6
# File 'lib/tramp/status.rb', line 4

def record
  @record
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)

11
12
13
# File 'lib/tramp/status.rb', line 11

def success?
  @success
end