Class: PandaDoc::SuccessResult
- Inherits:
-
Object
- Object
- PandaDoc::SuccessResult
show all
- Defined in:
- lib/panda_doc/success_result.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of SuccessResult.
6
7
8
|
# File 'lib/panda_doc/success_result.rb', line 6
def initialize(object)
@object = object
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *arguments, &block) ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/panda_doc/success_result.rb', line 14
def method_missing(method_name, *arguments, &block)
if object.respond_to?(method_name)
object.send(method_name, *arguments, &block)
else
super
end
end
|
Instance Method Details
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
22
23
24
|
# File 'lib/panda_doc/success_result.rb', line 22
def respond_to_missing?(method_name, include_private = false)
object.respond_to?(method_name) || super
end
|
#success? ⇒ Boolean
10
11
12
|
# File 'lib/panda_doc/success_result.rb', line 10
def success?
true
end
|