Class: Otc::EIP
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Otc::EIP
- Defined in:
- lib/otc/eip.rb
Class Method Summary collapse
Class Method Details
.query_all ⇒ Object
6 7 8 9 10 11 |
# File 'lib/otc/eip.rb', line 6 def query_all response = Request.get service: "ecs", path: "/v1/#{Configuration.project!}/publicips" JSON.parse(response.body)["publicips"].map do |ip| EIP.new(ip) end end |