Module: Packet
- Defined in:
- lib/packet.rb,
lib/packet/plan.rb,
lib/packet/user.rb,
lib/packet/client.rb,
lib/packet/device.rb,
lib/packet/entity.rb,
lib/packet/errors.rb,
lib/packet/project.rb,
lib/packet/ssh_key.rb,
lib/packet/version.rb,
lib/packet/facility.rb,
lib/packet/global_id.rb,
lib/packet/entity/base.rb,
lib/packet/client/plans.rb,
lib/packet/client/users.rb,
lib/packet/configuration.rb,
lib/packet/client/devices.rb,
lib/packet/entity/finders.rb,
lib/packet/client/projects.rb,
lib/packet/client/ssh_keys.rb,
lib/packet/operating_system.rb,
lib/packet/client/facilities.rb,
lib/packet/entity/timestamps.rb,
lib/packet/entity/persistence.rb,
lib/packet/entity/associations.rb,
lib/packet/entity/serialization.rb,
lib/packet/client/operating_systems.rb
Defined Under Namespace
Modules: Entity
Classes: Client, Configuration, Device, Error, Facility, GlobalIDLocator, NotFound, OperatingSystem, Plan, Project, SshKey, User
Constant Summary
collapse
- VERSION =
'0.0.7'.freeze
Class Method Summary
collapse
Class Method Details
.client ⇒ Object
24
25
26
|
# File 'lib/packet.rb', line 24
def self.client
@client ||= Packet::Client.new
end
|
.configuration ⇒ Object
9
10
11
|
# File 'lib/packet.rb', line 9
def self.configuration
@configuration ||= Configuration.new
end
|
13
14
15
16
17
|
# File 'lib/packet.rb', line 13
def self.configure
yield(configuration)
reset_client!
true
end
|
.reset! ⇒ Object
19
20
21
22
|
# File 'lib/packet.rb', line 19
def self.reset!
@configuration = Configuration.new
reset_client!
end
|
.respond_to?(method_name, include_private = false) ⇒ Boolean
39
40
41
|
# File 'lib/packet.rb', line 39
def self.respond_to?(method_name, include_private = false)
client.respond_to?(method_name, include_private) || super
end
|