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/task.rb,
lib/daisybill_api/models/user.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/paper_eor.rb,
lib/daisybill_api/models/attachment.rb,
lib/daisybill_api/models/remittance.rb,
lib/daisybill_api/ext/crud/write_off.rb,
lib/daisybill_api/models/bill_payment.rb,
lib/daisybill_api/models/error_report.rb,
lib/daisybill_api/models/pharmacy_bill.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/disputed_service.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/bill_mailing_address.rb,
lib/daisybill_api/models/claims_administrator.rb,
lib/daisybill_api/models/prescribing_provider.rb,
lib/daisybill_api/ext/attributes/type_castings.rb,
lib/daisybill_api/models/claim_adjustment_reason.rb,
lib/daisybill_api/models/claim_number_verification.rb,
lib/daisybill_api/models/request_for_second_review.rb,
lib/daisybill_api/models/service_line_item_payment.rb
Defined Under Namespace
Modules: Data, Ext, Models Classes: Configuration
Constant Summary collapse
- ROOT =
File.("../..", __FILE__)
- VERSION =
"0.1.7"
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>
21 22 23 |
# File 'lib/daisybill_api.rb', line 21 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
32 33 34 |
# File 'lib/daisybill_api.rb', line 32 def configure yield configuration end |
.logger ⇒ Object
50 51 52 |
# File 'lib/daisybill_api.rb', line 50 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"
45 46 47 |
# File 'lib/daisybill_api.rb', line 45 def reset_configuration @configuration = nil end |