Class: Swaggable::SchemaDefinition
- Inherits:
-
Object
- Object
- Swaggable::SchemaDefinition
- Includes:
- DefinitionBase
- Defined in:
- lib/swaggable/schema_definition.rb
Instance Method Summary collapse
Methods included from DefinitionBase
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
18 19 20 |
# File 'lib/swaggable/schema_definition.rb', line 18 def == other self.name == other.name if other.respond_to?(:name) end |
#attributes(&block) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/swaggable/schema_definition.rb', line 7 def attributes &block ForwardingDsl.run( @attributes ||= build_attributes, &block ) end |
#empty? ⇒ Boolean
14 15 16 |
# File 'lib/swaggable/schema_definition.rb', line 14 def empty? attributes.empty? end |
#hash ⇒ Object
23 24 25 |
# File 'lib/swaggable/schema_definition.rb', line 23 def hash name.hash end |