Class: Jsapi::Meta::Schema::Delegator

Inherits:
Object
  • Object
show all
Defined in:
lib/jsapi/meta/schema/delegator.rb

Overview

Used by Reference to delegate method calls to the referred schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(schema, existence) ⇒ Delegator

Returns a new instance of Delegator.



13
14
15
16
# File 'lib/jsapi/meta/schema/delegator.rb', line 13

def initialize(schema, existence)
  @schema = schema
  @existence = existence
end

Instance Attribute Details

#existenceObject (readonly)

The level of Existence.



9
10
11
# File 'lib/jsapi/meta/schema/delegator.rb', line 9

def existence
  @existence
end

Instance Method Details

#inspectObject

:nodoc:



18
19
20
21
22
# File 'lib/jsapi/meta/schema/delegator.rb', line 18

def inspect # :nodoc:
  "#<#{self.class.name} " \
  "schema: #{@schema.inspect}, " \
  "existence: #{@existence.inspect}>"
end