Class: Synaptic4r::Tags

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

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



143
144
145
146
147
148
# File 'lib/synaptic4r/result.rb', line 143

def initialize(args)
  super
  if args[:result]
    @listable_tags = args[:result].headers[:x_emc_listable_tags]
  end
end

Dynamic Method Handling

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

Instance Attribute Details

#listable_tagsObject (readonly)

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



140
141
142
# File 'lib/synaptic4r/result.rb', line 140

def listable_tags
  @listable_tags
end

Instance Method Details

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



151
152
153
# File 'lib/synaptic4r/result.rb', line 151

def print
  stringify_array(@listable_tags)
end