Class: FaradayFake
- Inherits:
-
Object
- Object
- FaradayFake
- Defined in:
- lib/sudachi-installer/faraday_fake.rb
Overview
fake class for Faraday.get
Class Method Summary collapse
Class Method Details
.get(endpoint) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/sudachi-installer/faraday_fake.rb', line 10 def get(endpoint) if !@xml @xml = Struct.new(:body).new(File.read(endpoint)) end @xml end |