Class: Jieshun::Parking::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(successful, body) ⇒ Result

Returns a new instance of Result.



8
9
10
11
# File 'lib/jieshun/parking/result.rb', line 8

def initialize(successful, body)
  @successful = successful
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



6
7
8
# File 'lib/jieshun/parking/result.rb', line 6

def body
  @body
end

#successfulObject (readonly)

Returns the value of attribute successful.



6
7
8
# File 'lib/jieshun/parking/result.rb', line 6

def successful
  @successful
end