Module: Scalingo::Endpoint::Base
- Included in:
- Collection, Resource
- Defined in:
- lib/scalingo/endpoint.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
Instance Method Summary collapse
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
31 32 33 |
# File 'lib/scalingo/endpoint.rb', line 31 def api @api end |
#prefix ⇒ Object
Returns the value of attribute prefix.
32 33 34 |
# File 'lib/scalingo/endpoint.rb', line 32 def prefix @prefix end |
Instance Method Details
#initialize(api, prefix = nil) ⇒ Object
34 35 36 37 |
# File 'lib/scalingo/endpoint.rb', line 34 def initialize(api, prefix = nil) self.api = api self.prefix = prefix || self.class.name.split('::').last.underscore.pluralize end |