class CloudParty::Responses::Result
Attributes
content[R]
development_mode[R]
id[RW]
ipv4_cidrs[R]
ipv6_cidrs[R]
name[R]
original_dnshost[R]
original_registar[R]
paused[R]
type[R]
Public Class Methods
new(result)
click to toggle source
# File lib/cloud_party/responses/accounts.rb, line 64 def initialize(result) @result = result @result.each do |k, v| next if k == :permissions next if k == :account instance_variable_set(:"@#{k}", v) end end
Public Instance Methods
account()
click to toggle source
# File lib/cloud_party/responses/accounts.rb, line 74 def account CloudParty::Responses::Node::Account.new(@result[:account]) end
id()
click to toggle source
# File lib/cloud_party/responses/accounts.rb, line 90 def id @id end
inspect()
click to toggle source
# File lib/cloud_party/responses/accounts.rb, line 94 def inspect wanted = %i[permissions account status roles id] outputs = [] wanted.each do |m| outputs << "#{m.to_s}=#{send(m)}" end "#<Result #{outputs.join(', ')}>" end
permissions()
click to toggle source
# File lib/cloud_party/responses/accounts.rb, line 78 def permissions CloudParty::Responses::Node::Permissions.new(@result[:permissions]) end
roles()
click to toggle source
# File lib/cloud_party/responses/accounts.rb, line 86 def roles @roles end
status()
click to toggle source
# File lib/cloud_party/responses/accounts.rb, line 82 def status @status end
to_s()
click to toggle source
# File lib/cloud_party/responses/accounts.rb, line 103 def to_s inspect end