Class: Api::V1::FireSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/orb_def/api/v1/fire_serializer.rb

Instance Method Summary collapse

Instance Method Details

#idObject



5
6
7
# File 'app/serializers/orb_def/api/v1/fire_serializer.rb', line 5

def id
  object.id.to_s
end

#weather_reading_idObject



9
10
11
# File 'app/serializers/orb_def/api/v1/fire_serializer.rb', line 9

def weather_reading_id
  object.weather_reading_id.to_s
end

#weather_station_idObject



13
14
15
# File 'app/serializers/orb_def/api/v1/fire_serializer.rb', line 13

def weather_station_id
  object.weather_station_id.to_s
end