Class: Synaptic4r::Acl

Inherits:
Result
  • Object
show all
Defined in:
lib/synaptic4r/result.rb

Instance Attribute Summary collapse

Attributes inherited from Result

#headers, #http_request, #payload, #result, #sign, #url

Instance Method Summary collapse

Methods inherited from Result

#extract_header, #method_missing, #stringify_array, #stringify_hash

Constructor Details

#initialize(args) ⇒ Acl

.….….….….….….….….….….….….….….….….….….….….….….….….……



165
166
167
168
169
170
171
# File 'lib/synaptic4r/result.rb', line 165

def initialize(args)
  super
  if args[:result]
    @user_acl = extract_header(args, :x_emc_useracl)
    @group_acl = extract_header(args, :x_emc_groupacl)
  end
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Synaptic4r::Result

Instance Attribute Details

#group_aclObject (readonly)

.….….….….….….….….….….….….….….….….….….….….….….….….……



162
163
164
# File 'lib/synaptic4r/result.rb', line 162

def group_acl
  @group_acl
end

#user_aclObject (readonly)

.….….….….….….….….….….….….….….….….….….….….….….….….……



162
163
164
# File 'lib/synaptic4r/result.rb', line 162

def user_acl
  @user_acl
end

Instance Method Details

.….….….….….….….….….….….….….….….….….….….….….….….….……



174
175
176
# File 'lib/synaptic4r/result.rb', line 174

def print
  "User ACL\n#{stringify_hash(@user_acl)}Group ACL\n#{stringify_hash(@group_acl)}"
end