Class: ApiExplorer::BaseProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/api_explorer/dsl/base_proxy.rb

Direct Known Subclasses

GroupProxy, RequestProxy

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj = nil) ⇒ BaseProxy

Returns a new instance of BaseProxy.



5
6
7
# File 'lib/api_explorer/dsl/base_proxy.rb', line 5

def initialize(obj = nil)
  self.obj = obj
end

Instance Attribute Details

#objObject

Returns the value of attribute obj.



3
4
5
# File 'lib/api_explorer/dsl/base_proxy.rb', line 3

def obj
  @obj
end

Instance Method Details

#collect(&block) ⇒ Object



9
10
11
# File 'lib/api_explorer/dsl/base_proxy.rb', line 9

def collect(&block)
  instance_eval(&block)
end