lib/ec2/host/host_data.rb in ec2-host-0.1.0 vs lib/ec2/host/host_data.rb in ec2-host-0.1.1

- old
+ new

@@ -69,22 +69,22 @@ info << "(#{roles.join(' ')})" unless roles.empty? info << "[#{tags.join(' ')}]" unless tags.empty? info << "{#{service}}" unless service.empty? info else - HashUtil.except(self, :instance).to_s + to_hash.to_s end end - def json - HashUtil.except(self, :instance).merge( + def to_hash + HashUtil.except(self, :instance).to_h.merge( instance_id: instance_id, private_ip_address: private_ip_address, public_ip_address: public_ip_address, launch_time: launch_time, state: state, monitoring: monitoring, - ).to_json + ) end # private # "instance.instance_id" => self.send("instance").send("instance_id")