Module: DogeCoin::Configuration
- Included in:
- DogeCoin
- Defined in:
- lib/doge_coin/configuration.rb
Constant Summary collapse
- DOGECHAIN_BASE_URL =
'http://dogechain.info/chain/Dogecoin/q/'
Instance Attribute Summary collapse
-
#vcr_mode ⇒ Object
Returns the value of attribute vcr_mode.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#vcr_mode ⇒ Object
Returns the value of attribute vcr_mode.
5 6 7 |
# File 'lib/doge_coin/configuration.rb', line 5 def vcr_mode @vcr_mode end |
Class Method Details
.configure_vcr ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/doge_coin/configuration.rb', line 13 def self.configure_vcr VCR.configure do |c| c.cassette_library_dir = 'spec/blockchain_captured_responses' c. = { serialize_with: :json } c.preserve_exact_body_bytes do || .body.encoding.name == 'ASCII-8BIT' || !.body.valid_encoding? end c.hook_into :webmock end end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
9 10 11 |
# File 'lib/doge_coin/configuration.rb', line 9 def configure yield self end |