class CapComputeEngine::Instance
Public Class Methods
new(hash)
click to toggle source
# File lib/cap_compute_engine/instance.rb, line 3 def initialize(hash) @hash = hash.with_indifferent_access end
Public Instance Methods
external_ip()
click to toggle source
# File lib/cap_compute_engine/instance.rb, line 11 def external_ip @hash[:networkInterfaces].first[:accessConfigs].first[:natIP] end
has_tag?(tag_name)
click to toggle source
# File lib/cap_compute_engine/instance.rb, line 15 def has_tag?(tag_name) tags.include?(tag_name) end