Class: Restspec::Stores::EndpointStoreDelegator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Restspec::Stores::EndpointStoreDelegator
- Defined in:
- lib/restspec/stores/endpoint_store.rb
Instance Method Summary collapse
- #get(endpoint_name) ⇒ Object
- #get_by_schema_and_name(schema_name, endpoint_name) ⇒ Object
- #store(endpoint) ⇒ Object
Instance Method Details
#get(endpoint_name) ⇒ Object
10 11 12 |
# File 'lib/restspec/stores/endpoint_store.rb', line 10 def get(endpoint_name) self[endpoint_name] end |
#get_by_schema_and_name(schema_name, endpoint_name) ⇒ Object
14 15 16 17 18 |
# File 'lib/restspec/stores/endpoint_store.rb', line 14 def get_by_schema_and_name(schema_name, endpoint_name) values.find do |endpoint| endpoint.schema_name == schema_name && endpoint.name == endpoint_name end end |
#store(endpoint) ⇒ Object
6 7 8 |
# File 'lib/restspec/stores/endpoint_store.rb', line 6 def store(endpoint) self[endpoint.full_name] = endpoint end |