lib/amee/data_api/data_item.rb in hookercookerman-amee-0.1.0 vs lib/amee/data_api/data_item.rb in hookercookerman-amee-0.1.1
- old
+ new
@@ -14,9 +14,10 @@
:item_definition => {:class => Amee::DataApi::ItemDefinition}
def populate!
session.api_call(:get, "data.item", self.full_path) do |response|
populate_from_hash!(response)
+ self
end
@lazy_loaded = true
end
def kg_co2_per_kwh
\ No newline at end of file