Class: RubyPitaya::HttpBase

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/core/http_base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHttpBase

Returns a new instance of HttpBase.



11
12
13
# File 'lib/rubypitaya/core/http_base.rb', line 11

def initialize
  @objects = self.class.objects
end

Instance Attribute Details

#objectsObject (readonly)

Returns the value of attribute objects.



9
10
11
# File 'lib/rubypitaya/core/http_base.rb', line 9

def objects
  @objects
end

Class Method Details

.objectsObject



15
16
17
18
# File 'lib/rubypitaya/core/http_base.rb', line 15

def self.objects
  self.handler_objects ||= InstanceHolder.new
  return self.handler_objects
end