module Scalingo::Endpoint::Base

Attributes

api[RW]
auth_api[RW]
prefix[RW]

Public Class Methods

new(api, prefix = nil, opts = {}) click to toggle source
# File lib/scalingo/endpoint.rb, line 41
def initialize(api, prefix = nil, opts = {})
  self.api = api
  self.auth_api = opts.fetch(:auth_api, false)
  self.prefix = prefix || self.class.name.split('::').last.underscore.pluralize
end