Class: Ocpp::Rails::TimestampParser::Result

Inherits:
Struct
  • Object
show all
Defined in:
app/services/ocpp/rails/timestamp_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



11
12
13
# File 'app/services/ocpp/rails/timestamp_parser.rb', line 11

def raw
  @raw
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



11
12
13
# File 'app/services/ocpp/rails/timestamp_parser.rb', line 11

def source
  @source
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



11
12
13
# File 'app/services/ocpp/rails/timestamp_parser.rb', line 11

def time
  @time
end

Instance Method Details

#server_fallback?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/services/ocpp/rails/timestamp_parser.rb', line 12

def server_fallback?
  source == SOURCE_SERVER_FALLBACK
end