Module: Brazenhead
- Defined in:
- lib/brazenhead.rb,
lib/brazenhead/device.rb,
lib/brazenhead/server.rb,
lib/brazenhead/signer.rb,
lib/brazenhead/android.rb,
lib/brazenhead/builder.rb,
lib/brazenhead/package.rb,
lib/brazenhead/process.rb,
lib/brazenhead/request.rb,
lib/brazenhead/version.rb,
lib/brazenhead/manifest_info.rb,
lib/brazenhead/call_accumulator.rb
Defined Under Namespace
Modules: Android, Package, Signer
Classes: Builder, CallAccumulator, Device, ManifestInfo, Process, Request, Server
Constant Summary
collapse
- VERSION =
"0.4.8"
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
9
10
11
|
# File 'lib/brazenhead.rb', line 9
def method_missing(method, *args)
call_method_on_driver(method.to_s.to_java_call, args)
end
|
Instance Method Details
#chain_calls(&block) ⇒ Object
13
14
15
16
17
18
|
# File 'lib/brazenhead.rb', line 13
def chain_calls(&block)
accumulator.clear
block.call accumulator
@last_response = device.send(accumulator.message)
@last_response
end
|
#last_json ⇒ Object
24
25
26
|
# File 'lib/brazenhead.rb', line 24
def last_json
device.last_json
end
|
#last_response ⇒ Object
20
21
22
|
# File 'lib/brazenhead.rb', line 20
def last_response
@last_response
end
|