Class: Alipan::Client
- Inherits:
-
Object
- Object
- Alipan::Client
- Defined in:
- lib/alipan/client.rb
Instance Method Summary collapse
- #get_drive(opts = {}) ⇒ Object
-
#initialize(opts) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(opts) ⇒ Client
Returns a new instance of Client.
6 7 8 9 10 11 |
# File 'lib/alipan/client.rb', line 6 def initialize(opts) fail ArgumentError, "Argument access_token must be provided" unless opts[:access_token] @config = Config.new(opts) @protocol = Protocol.new(@config) end |
Instance Method Details
#get_drive(opts = {}) ⇒ Object
13 14 15 |
# File 'lib/alipan/client.rb', line 13 def get_drive(opts = {}) @protocol.get_drive end |