Class: Jsapi::Meta::Schema::Delegator
- Inherits:
-
Object
- Object
- Jsapi::Meta::Schema::Delegator
- Defined in:
- lib/jsapi/meta/schema/delegator.rb
Overview
Used by Reference to delegate method calls to the referred schema.
Instance Attribute Summary collapse
-
#existence ⇒ Object
readonly
The level of Existence.
Instance Method Summary collapse
-
#initialize(schema, existence) ⇒ Delegator
constructor
A new instance of Delegator.
-
#inspect ⇒ Object
:nodoc:.
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
#existence ⇒ Object (readonly)
The level of Existence.
9 10 11 |
# File 'lib/jsapi/meta/schema/delegator.rb', line 9 def existence @existence end |
Instance Method Details
#inspect ⇒ Object
: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 |