Class: WebMock::Resources::Schema
- Inherits:
-
Object
- Object
- WebMock::Resources::Schema
- Defined in:
- lib/webmock-resources/schema.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#object ⇒ Object
Returns the value of attribute object.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type) ⇒ Schema
constructor
A new instance of Schema.
- #reset_sequence ⇒ Object
Constructor Details
#initialize(type) ⇒ Schema
Returns a new instance of Schema.
5 6 7 8 9 10 |
# File 'lib/webmock-resources/schema.rb', line 5 def initialize type @type = type @fields = {} reset_sequence end |
Instance Attribute Details
#fields ⇒ Object
Returns the value of attribute fields.
3 4 5 |
# File 'lib/webmock-resources/schema.rb', line 3 def fields @fields end |
#object ⇒ Object
Returns the value of attribute object.
3 4 5 |
# File 'lib/webmock-resources/schema.rb', line 3 def object @object end |
#sequence ⇒ Object
Returns the value of attribute sequence.
3 4 5 |
# File 'lib/webmock-resources/schema.rb', line 3 def sequence @sequence end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/webmock-resources/schema.rb', line 3 def type @type end |