Module: InfinumAzure
- Defined in:
- lib/infinum_azure.rb,
lib/infinum_azure/config.rb,
lib/infinum_azure/engine.rb,
lib/infinum_azure/version.rb,
lib/tasks/infinum_azure/users/request.rb,
lib/tasks/infinum_azure/users/response.rb,
lib/tasks/infinum_azure/users/migration.rb,
app/models/infinum_azure/application_record.rb,
app/services/infinum_azure/resources/finder.rb,
app/services/infinum_azure/resources/params.rb,
app/services/infinum_azure/after_upsert_resource.rb,
app/controllers/infinum_azure/api/base_controller.rb,
app/controllers/infinum_azure/resources_controller.rb,
app/controllers/infinum_azure/application_controller.rb,
app/controllers/infinum_azure/api/webhooks_controller.rb,
app/controllers/infinum_azure/resources/omniauth_callbacks_controller.rb
Defined Under Namespace
Modules: Api, Resources, Users
Classes: AfterUpsertResource, ApplicationController, ApplicationRecord, Config, Engine, ResourcesController
Constant Summary
collapse
- Error =
Class.new(StandardError)
- VERSION =
'3.1.0'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
19
20
21
|
# File 'lib/infinum_azure.rb', line 19
def config
@config ||= Config.new
end
|
13
14
15
16
17
|
# File 'lib/infinum_azure.rb', line 13
def configure
yield config if block_given?
config.validate!
end
|
.provider ⇒ Object
23
24
25
|
# File 'lib/infinum_azure.rb', line 23
def provider
to_s.underscore
end
|
.resource_class ⇒ Object
27
28
29
|
# File 'lib/infinum_azure.rb', line 27
def resource_class
config.resource_name.constantize
end
|