Class: Scale::Endpoints::Endpoint
- Inherits:
-
Object
- Object
- Scale::Endpoints::Endpoint
- Defined in:
- lib/scale/endpoints/endpoint.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api, *args) ⇒ Endpoint
constructor
A new instance of Endpoint.
- #process ⇒ Object
Constructor Details
Instance Attribute Details
#api ⇒ Object (readonly)
Returns the value of attribute api.
4 5 6 |
# File 'lib/scale/endpoints/endpoint.rb', line 4 def api @api end |
#args ⇒ Object (readonly)
Returns the value of attribute args.
4 5 6 |
# File 'lib/scale/endpoints/endpoint.rb', line 4 def args @args end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
4 5 6 |
# File 'lib/scale/endpoints/endpoint.rb', line 4 def params @params end |
Class Method Details
.match?(method) ⇒ Boolean
20 21 22 |
# File 'lib/scale/endpoints/endpoint.rb', line 20 def self.match?(method) shortcut.to_s == method.to_s end |
.shortcut ⇒ Object
16 17 18 |
# File 'lib/scale/endpoints/endpoint.rb', line 16 def self.shortcut nil end |
Instance Method Details
#process ⇒ Object
12 13 14 |
# File 'lib/scale/endpoints/endpoint.rb', line 12 def process raise NotImplementedError end |