Class: WebMock::Resources::Resource
- Inherits:
-
Object
- Object
- WebMock::Resources::Resource
- Defined in:
- lib/webmock-resources/resource.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/webmock-resources/resource.rb', line 3 def attributes @attributes end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/webmock-resources/resource.rb', line 3 def id @id end |
Instance Method Details
#to_hash ⇒ Object
5 6 7 |
# File 'lib/webmock-resources/resource.rb', line 5 def to_hash attributes.merge id: id end |