Class: Ubiquity::Wiredrive::API::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/ubiquity/wiredrive/api/client.rb

Class Method Summary collapse

Class Method Details

.new(args = { }) ⇒ Object



8
9
10
# File 'lib/ubiquity/wiredrive/api/client.rb', line 8

def self.new(args = { })
  new_v2(args)
end

.new_v2(args) ⇒ Object



12
13
14
15
16
# File 'lib/ubiquity/wiredrive/api/client.rb', line 12

def self.new_v2(args)
  version = '2'
  require "ubiquity/wiredrive/api/v#{version}"
  Ubiquity::Wiredrive::API::V2::Client.new(args)
end

.new_v3(args) ⇒ Object



18
19
20
21
22
# File 'lib/ubiquity/wiredrive/api/client.rb', line 18

def self.new_v3(args)
  version = '3'
  require "ubiquity/wiredrive/api/v#{version}"
  Ubiquity::Wiredrive::API::V3::Client.new(args)
end