Module: WealthForge3

Defined in:
lib/wealthforge3-ruby.rb,
lib/wealthforge/version.rb,
lib/wealthforge/configuration.rb

Defined Under Namespace

Classes: ApiException, Configuration, Connection, Investment, Offering

Constant Summary collapse

VERSION =
"3.0.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



9
10
11
# File 'lib/wealthforge3-ruby.rb', line 9

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



20
21
22
23
# File 'lib/wealthforge3-ruby.rb', line 20

def self.configure
  yield(configuration)
  configuration.api_url = configuration.environment == "production" ? configuration.production_url : configuration.sandbox_url
end

.resetObject



16
17
18
# File 'lib/wealthforge3-ruby.rb', line 16

def self.reset
  @configuration = Configuration.new
end