Module: RubyPhpipam
- Defined in:
- lib/ruby_phpipam.rb,
lib/ruby_phpipam/query.rb,
lib/ruby_phpipam/helper.rb,
lib/ruby_phpipam/subnet.rb,
lib/ruby_phpipam/address.rb,
lib/ruby_phpipam/section.rb,
lib/ruby_phpipam/version.rb,
lib/ruby_phpipam/exceptions.rb,
lib/ruby_phpipam/configuration.rb,
lib/ruby_phpipam/authentication.rb
Defined Under Namespace
Classes: Address, Authentication, AuthenticationFailed, Configuration, Error, Helper, Query, RequestFailed, Section, Subnet, UndefinedType, WrongFormatSearch
Constant Summary collapse
- VERSION =
"0.3.1"
Class Attribute Summary collapse
-
.auth ⇒ Object
Returns the value of attribute auth.
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.auth ⇒ Object
Returns the value of attribute auth.
20 21 22 |
# File 'lib/ruby_phpipam.rb', line 20 def auth @auth end |
.configuration ⇒ Object
Returns the value of attribute configuration.
19 20 21 |
# File 'lib/ruby_phpipam.rb', line 19 def configuration @configuration end |
Class Method Details
.authenticate ⇒ Object
28 29 30 |
# File 'lib/ruby_phpipam.rb', line 28 def self.authenticate self.auth ||= Authentication.new end |
.configure {|configuration| ... } ⇒ Object
23 24 25 26 |
# File 'lib/ruby_phpipam.rb', line 23 def self.configure self.configuration ||= Configuration.new yield(configuration) end |
.gen_url(url) ⇒ Object
32 33 34 |
# File 'lib/ruby_phpipam.rb', line 32 def self.gen_url(url) "#{RubyPhpipam.configuration.base_url}#{url}" end |