Class: GfreshPoint::ResponseObjects::ResponseSuccess

Inherits:
Object
  • Object
show all
Defined in:
lib/gfresh_point/response_objects/response_success.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value = nil) ⇒ ResponseSuccess

Returns a new instance of ResponseSuccess.



6
7
8
# File 'lib/gfresh_point/response_objects/response_success.rb', line 6

def initialize(value = nil)
  @value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/gfresh_point/response_objects/response_success.rb', line 4

def value
  @value
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/gfresh_point/response_objects/response_success.rb', line 10

def success?
  true
end