Class: Nard::Appi::Client
- Inherits:
-
Object
- Object
- Nard::Appi::Client
- Extended by:
- ActiveSupport::Callbacks
- Includes:
- Nard::Appi::ClientExt::Request
- Defined in:
- lib/nard/appi/client.rb,
lib/nard/appi/client/util/args_normalizer.rb,
lib/nard/appi/client/util/base_normalizer.rb,
lib/nard/appi/client/util/module/path_normalizer.rb,
lib/nard/appi/client/util/module/boolean_normalizer.rb,
lib/nard/appi/client/util/module/options_normalizer.rb
Defined Under Namespace
Modules: Util
Methods for DSL collapse
-
.top_namespace ⇒ Object
readonly
Returns the value of attribute top_namespace.
Methods for DSL collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Nard::Appi::ClientExt::Request
Constructor Details
#initialize(options = {}) ⇒ Client
64 65 66 67 |
# File 'lib/nard/appi/client.rb', line 64 def initialize( = {} ) set_attr_accessors set_option_values( ) end |
Class Attribute Details
.top_namespace ⇒ Object (readonly)
Returns the value of attribute top_namespace.
31 32 33 |
# File 'lib/nard/appi/client.rb', line 31 def top_namespace @top_namespace end |
Class Method Details
.client_for(namespace) ⇒ Object
14 15 16 |
# File 'lib/nard/appi/client.rb', line 14 def self.client_for( namespace ) set_top_namespace( namespace ) end |
.concerns(*namespaces, under: nil) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/nard/appi/client.rb', line 18 def self.concerns( *namespaces, under: nil ) raise ArgumentError unless under.present? namespaces.each do | namespace | include_concerned_module( namespace, under ) end end |