Module: DaisybillApi
- Defined in:
- lib/daisybill_api.rb,
lib/daisybill_api/ext.rb,
lib/daisybill_api/data.rb,
lib/daisybill_api/models.rb,
lib/daisybill_api/version.rb,
lib/daisybill_api/data/url.rb,
lib/daisybill_api/ext/crud.rb,
lib/daisybill_api/ext/links.rb,
lib/daisybill_api/data/client.rb,
lib/daisybill_api/models/base.rb,
lib/daisybill_api/models/bill.rb,
lib/daisybill_api/models/payer.rb,
lib/daisybill_api/configuration.rb,
lib/daisybill_api/ext/crud/show.rb,
lib/daisybill_api/models/injury.rb,
lib/daisybill_api/ext/attributes.rb,
lib/daisybill_api/ext/crud/index.rb,
lib/daisybill_api/ext/links/link.rb,
lib/daisybill_api/models/address.rb,
lib/daisybill_api/models/contact.rb,
lib/daisybill_api/models/patient.rb,
lib/daisybill_api/ext/crud/create.rb,
lib/daisybill_api/ext/crud/search.rb,
lib/daisybill_api/ext/crud/update.rb,
lib/daisybill_api/models/employer.rb,
lib/daisybill_api/ext/associations.rb,
lib/daisybill_api/ext/crud/destroy.rb,
lib/daisybill_api/models/attachment.rb,
lib/daisybill_api/models/bill_payment.rb,
lib/daisybill_api/models/bill_submission.rb,
lib/daisybill_api/ext/pageable_collection.rb,
lib/daisybill_api/models/billing_provider.rb,
lib/daisybill_api/models/place_of_service.rb,
lib/daisybill_api/ext/attributes/attribute.rb,
lib/daisybill_api/models/service_line_item.rb,
lib/daisybill_api/models/referring_provider.rb,
lib/daisybill_api/models/rendering_provider.rb,
lib/daisybill_api/models/claims_administrator.rb,
lib/daisybill_api/ext/attributes/type_castings.rb,
lib/daisybill_api/models/billing_provider_attachment.rb
Defined Under Namespace
Modules: Data, Ext, Models Classes: Configuration
Constant Summary collapse
- ROOT =
File.('../..', __FILE__)
- VERSION =
'0.1.2'
Class Attribute Summary collapse
-
.configuration ⇒ DaisybillApi::Configuration
Returns the current configuration.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Allows configuration with a block.
- .logger ⇒ Object
-
.reset_configuration ⇒ nil
Resets the configuration.
Class Attribute Details
.configuration ⇒ DaisybillApi::Configuration
Returns the current configuration
DaisybillApi.configuration
# => #<DaisybillApi::Configuration:0x007fbf85e64e88 @host="go.daisybill.com", @port=443>
20 21 22 |
# File 'lib/daisybill_api.rb', line 20 def configuration @configuration ||= DaisybillApi::Configuration.new end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Allows configuration with a block
DaisybillApi.configure do |config|
config.host = "localhost"
config.port = 3000
config.api_token = "123abc"
end
31 32 33 |
# File 'lib/daisybill_api.rb', line 31 def configure yield configuration end |
.logger ⇒ Object
49 50 51 |
# File 'lib/daisybill_api.rb', line 49 def logger configuration.logger end |
.reset_configuration ⇒ nil
Resets the configuration
DaisybillApi.configuration.host = "localhost" # => "localhost"
DaisybillApi.configuration.port = 3000 # => 3000
DaisybillApi.reset_configuration # => nil
DaisybillApi.configuration.host # => "go.daisybill.com"
44 45 46 |
# File 'lib/daisybill_api.rb', line 44 def reset_configuration @configuration = nil end |