Class: Synaptic4r::SystemMetadata

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) ⇒ SystemMetadata

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



120
121
122
123
124
125
# File 'lib/synaptic4r/result.rb', line 120

def initialize(args)
  super
  if args[:result]
    @metadata = extract_header(args, :x_emc_meta)
  end
end

Dynamic Method Handling

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

Instance Attribute Details

#metadataObject (readonly)

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



117
118
119
# File 'lib/synaptic4r/result.rb', line 117

def 
  @metadata
end

Instance Method Details

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



128
129
130
# File 'lib/synaptic4r/result.rb', line 128

def print
  stringify_hash(@metadata)
end