Skip to content

Instantly share code, notes, and snippets.

@ColPanic
Created January 28, 2011 20:26
Show Gist options
  • Save ColPanic/800879 to your computer and use it in GitHub Desktop.
Save ColPanic/800879 to your computer and use it in GitHub Desktop.
The object:
EsiElectricMeter(esi_electric_meter_id: integer, electric_meter_id: integer, esi_id: integer, device_mq_id: integer, name: string, status: string, comments: text, active_flag: string, delete_flag: string, initial_meter_reading: integer, final_meter_reading: integer, meter_reading_delta: integer, submeter_flag: string, ct_factor: integer, esi_electric_meter_history_id: integer, date_created: timestamp, date_updated: timestamp)
irb(main):126:0* EsiElectricMeter.respond_to?("esi_electric_meter_id")
=> false
irb(main):127:0>
irb(main):128:0* EsiElectricMeter.respond_to?("electric_meter_id")
=> false
irb(main):129:0>
irb(main):130:0* EsiElectricMeter.respond_to?("status")
=> false
irb(main):131:0> EsiElectricMeter.respond_to?("name")
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment