Class: Dallal::Result::Success

Inherits:
Object
  • Object
show all
Defined in:
lib/dallal/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil) ⇒ Success

Returns a new instance of Success.



5
6
7
8
# File 'lib/dallal/result.rb', line 5

def initialize(data = nil)
  @success = true
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



4
5
6
# File 'lib/dallal/result.rb', line 4

def data
  @data
end

#successObject (readonly)

Returns the value of attribute success.



4
5
6
# File 'lib/dallal/result.rb', line 4

def success
  @success
end