Class: Robots::Report

Inherits:
Struct
  • Object
show all
Defined in:
app/models/robots/report.rb

Overview

Simple report object packaged up for easy json rendering and testing

Instance Attribute Summary collapse

Instance Attribute Details

#bedsObject

Returns the value of attribute beds

Returns:

  • (Object)

    the current value of beds



5
6
7
# File 'app/models/robots/report.rb', line 5

def beds
  @beds
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



5
6
7
# File 'app/models/robots/report.rb', line 5

def message
  @message
end

#validObject Also known as: valid?

Returns the value of attribute valid

Returns:

  • (Object)

    the current value of valid



5
6
7
# File 'app/models/robots/report.rb', line 5

def valid
  @valid
end