Class: CloudParty::Responses::Node::Meta
- Inherits:
-
Object
- Object
- CloudParty::Responses::Node::Meta
- Defined in:
- lib/cloud_party/responses/nodes/dns_records/meta.rb
Instance Attribute Summary collapse
-
#auto_added ⇒ Object
readonly
Returns the value of attribute auto_added.
-
#managed_by_apps ⇒ Object
readonly
Returns the value of attribute managed_by_apps.
-
#managed_by_argo_tunnel ⇒ Object
readonly
Returns the value of attribute managed_by_argo_tunnel.
Instance Method Summary collapse
-
#initialize(hsh) ⇒ Meta
constructor
A new instance of Meta.
- #inspect ⇒ Object
- #to_s ⇒ Object
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_added ⇒ Object (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_apps ⇒ Object (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_tunnel ⇒ Object (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
#inspect ⇒ Object
19 20 21 |
# File 'lib/cloud_party/responses/nodes/dns_records/meta.rb', line 19 def inspect to_s end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/cloud_party/responses/nodes/dns_records/meta.rb', line 16 def to_s "#<Meta: #{@entries}>" end |