Class: Seahorse::Client::Configuration::DefaultResolver Private
- Inherits:
-
Object
- Object
- Seahorse::Client::Configuration::DefaultResolver
- Defined in:
- lib/seahorse/client/configuration.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#initialize(struct) ⇒ DefaultResolver
constructor
private
A new instance of DefaultResolver.
- #resolve ⇒ Object private
- #respond_to?(method_name, *args) ⇒ Boolean private
Constructor Details
#initialize(struct) ⇒ DefaultResolver
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DefaultResolver.
177 178 179 180 |
# File 'lib/seahorse/client/configuration.rb', line 177 def initialize(struct) @struct = struct @members = Set.new(@struct.members) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object (private)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
206 207 208 209 210 211 212 |
# File 'lib/seahorse/client/configuration.rb', line 206 def method_missing(method_name, *args) if @members.include?(method_name) value_at(method_name) else super end end |
Instance Method Details
#resolve ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
182 183 184 |
# File 'lib/seahorse/client/configuration.rb', line 182 def resolve @members.each { |opt_name| value_at(opt_name) } end |
#respond_to?(method_name, *args) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
186 187 188 |
# File 'lib/seahorse/client/configuration.rb', line 186 def respond_to?(method_name, *args) @members.include?(method_name) or super end |