Class: CloudParty::Responses::Node::Meta

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud_party/responses/nodes/dns_records/meta.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hsh) ⇒ Meta

Returns a new instance of Meta.



6
7
8
9
10
11
12
13
14
15
# File 'lib/cloud_party/responses/nodes/dns_records/meta.rb', line 6

def initialize(hsh)
  @entries = []
  hsh.each do |key, value|
    @entries << "#{key}=#{value}"
  end
  auto_added = DateTime.iso8601(hsh.dig(:auto_added))
  managed_by_apps = DateTime.iso8601(hsh.dig(:managed_by_apps))
  managed_by_argo_tunnel = hsh.dig(:managed_by_argo_tunnel)

end

Instance Attribute Details

#auto_addedObject (readonly)

Returns the value of attribute auto_added.



5
6
7
# File 'lib/cloud_party/responses/nodes/dns_records/meta.rb', line 5

def auto_added
  @auto_added
end

#managed_by_appsObject (readonly)

Returns the value of attribute managed_by_apps.



5
6
7
# File 'lib/cloud_party/responses/nodes/dns_records/meta.rb', line 5

def managed_by_apps
  @managed_by_apps
end

#managed_by_argo_tunnelObject (readonly)

Returns the value of attribute managed_by_argo_tunnel.



5
6
7
# File 'lib/cloud_party/responses/nodes/dns_records/meta.rb', line 5

def managed_by_argo_tunnel
  @managed_by_argo_tunnel
end

Instance Method Details

#inspectObject



19
20
21
# File 'lib/cloud_party/responses/nodes/dns_records/meta.rb', line 19

def inspect
  to_s
end

#to_sObject



16
17
18
# File 'lib/cloud_party/responses/nodes/dns_records/meta.rb', line 16

def to_s
  "#<Meta: #{@entries}>"
end