Class: CloudParty::Responses::Result
- Inherits:
-
Object
- Object
- CloudParty::Responses::Result
- Defined in:
- lib/cloud_party/responses/ips.rb,
lib/cloud_party/responses/zones.rb,
lib/cloud_party/responses/accounts.rb,
lib/cloud_party/responses/dns_records.rb,
lib/cloud_party/responses/memberships.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#created_on ⇒ Object
readonly
Returns the value of attribute created_on.
-
#development_mode ⇒ Object
readonly
Returns the value of attribute development_mode.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#ipv4_cidrs ⇒ Object
readonly
Returns the value of attribute ipv4_cidrs.
-
#ipv6_cidrs ⇒ Object
readonly
Returns the value of attribute ipv6_cidrs.
-
#locked ⇒ Object
readonly
Returns the value of attribute locked.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
-
#modified_on ⇒ Object
readonly
Returns the value of attribute modified_on.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#original_dnshost ⇒ Object
readonly
Returns the value of attribute original_dnshost.
-
#original_registar ⇒ Object
readonly
Returns the value of attribute original_registar.
-
#paused ⇒ Object
readonly
Returns the value of attribute paused.
-
#permissions ⇒ Object
readonly
Returns the value of attribute permissions.
-
#proxiable ⇒ Object
readonly
Returns the value of attribute proxiable.
-
#proxied ⇒ Object
readonly
Returns the value of attribute proxied.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#ttl ⇒ Object
readonly
Returns the value of attribute ttl.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#zone_id ⇒ Object
readonly
Returns the value of attribute zone_id.
-
#zone_name ⇒ Object
readonly
Returns the value of attribute zone_name.
Instance Method Summary collapse
- #account ⇒ Object
-
#initialize(result) ⇒ Result
constructor
A new instance of Result.
- #inspect ⇒ Object
- #roles ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(result) ⇒ Result
Returns a new instance of Result.
71 72 73 74 75 76 |
# File 'lib/cloud_party/responses/ips.rb', line 71 def initialize(result) @result = result @result.each do |k, v| instance_variable_set(:"@#{k}", v) end end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
84 85 86 |
# File 'lib/cloud_party/responses/zones.rb', line 84 def content @content end |
#created_on ⇒ Object (readonly)
Returns the value of attribute created_on.
91 92 93 |
# File 'lib/cloud_party/responses/dns_records.rb', line 91 def created_on @created_on end |
#development_mode ⇒ Object (readonly)
Returns the value of attribute development_mode.
84 85 86 |
# File 'lib/cloud_party/responses/zones.rb', line 84 def development_mode @development_mode end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
84 85 86 |
# File 'lib/cloud_party/responses/zones.rb', line 84 def id @id end |
#ipv4_cidrs ⇒ Object (readonly)
Returns the value of attribute ipv4_cidrs.
70 71 72 |
# File 'lib/cloud_party/responses/ips.rb', line 70 def ipv4_cidrs @ipv4_cidrs end |
#ipv6_cidrs ⇒ Object (readonly)
Returns the value of attribute ipv6_cidrs.
70 71 72 |
# File 'lib/cloud_party/responses/ips.rb', line 70 def ipv6_cidrs @ipv6_cidrs end |
#locked ⇒ Object (readonly)
Returns the value of attribute locked.
91 92 93 |
# File 'lib/cloud_party/responses/dns_records.rb', line 91 def locked @locked end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
91 92 93 |
# File 'lib/cloud_party/responses/dns_records.rb', line 91 def @meta end |
#modified_on ⇒ Object (readonly)
Returns the value of attribute modified_on.
91 92 93 |
# File 'lib/cloud_party/responses/dns_records.rb', line 91 def modified_on @modified_on end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
84 85 86 |
# File 'lib/cloud_party/responses/zones.rb', line 84 def name @name end |
#original_dnshost ⇒ Object (readonly)
Returns the value of attribute original_dnshost.
84 85 86 |
# File 'lib/cloud_party/responses/zones.rb', line 84 def original_dnshost @original_dnshost end |
#original_registar ⇒ Object (readonly)
Returns the value of attribute original_registar.
84 85 86 |
# File 'lib/cloud_party/responses/zones.rb', line 84 def original_registar @original_registar end |
#paused ⇒ Object (readonly)
Returns the value of attribute paused.
84 85 86 |
# File 'lib/cloud_party/responses/zones.rb', line 84 def paused @paused end |
#permissions ⇒ Object (readonly)
Returns the value of attribute permissions.
84 85 86 |
# File 'lib/cloud_party/responses/zones.rb', line 84 def @permissions end |
#proxiable ⇒ Object (readonly)
Returns the value of attribute proxiable.
91 92 93 |
# File 'lib/cloud_party/responses/dns_records.rb', line 91 def proxiable @proxiable end |
#proxied ⇒ Object (readonly)
Returns the value of attribute proxied.
91 92 93 |
# File 'lib/cloud_party/responses/dns_records.rb', line 91 def proxied @proxied end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
84 85 86 |
# File 'lib/cloud_party/responses/zones.rb', line 84 def status @status end |
#ttl ⇒ Object (readonly)
Returns the value of attribute ttl.
91 92 93 |
# File 'lib/cloud_party/responses/dns_records.rb', line 91 def ttl @ttl end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
84 85 86 |
# File 'lib/cloud_party/responses/zones.rb', line 84 def type @type end |
#zone_id ⇒ Object (readonly)
Returns the value of attribute zone_id.
91 92 93 |
# File 'lib/cloud_party/responses/dns_records.rb', line 91 def zone_id @zone_id end |
#zone_name ⇒ Object (readonly)
Returns the value of attribute zone_name.
91 92 93 |
# File 'lib/cloud_party/responses/dns_records.rb', line 91 def zone_name @zone_name end |
Instance Method Details
#account ⇒ Object
74 75 76 |
# File 'lib/cloud_party/responses/accounts.rb', line 74 def account CloudParty::Responses::Node::Account.new(@result[:account]) end |
#inspect ⇒ Object
80 81 82 83 84 85 86 87 |
# File 'lib/cloud_party/responses/ips.rb', line 80 def inspect wanted = %i[ipv4_cidrs ipv6_cidrs] outputs = [] wanted.each do |m| outputs << "#{m.to_s}=#{send(m)}" end "#<Result #{outputs.join(', ')}>" end |
#roles ⇒ Object
86 87 88 |
# File 'lib/cloud_party/responses/accounts.rb', line 86 def roles @roles end |
#to_s ⇒ Object
89 90 91 |
# File 'lib/cloud_party/responses/ips.rb', line 89 def to_s inspect end |