Class: Memories::MilestoneProxy
- Inherits:
-
VersionProxy
- Object
- VersionProxy
- Memories::MilestoneProxy
- Defined in:
- lib/memories/milestones_proxy.rb
Instance Attribute Summary
Attributes inherited from VersionProxy
Instance Method Summary collapse
-
#initialize(doc, milestone_metadata) ⇒ MilestoneProxy
constructor
A new instance of MilestoneProxy.
- #method_missing(method_name, *args, &block) ⇒ Object
- #milestone? ⇒ Boolean
Methods inherited from VersionProxy
#instance, #revision, #version
Constructor Details
#initialize(doc, milestone_metadata) ⇒ MilestoneProxy
Returns a new instance of MilestoneProxy.
79 80 81 82 83 |
# File 'lib/memories/milestones_proxy.rb', line 79 def initialize(doc, ) @doc = doc @milestone_metadata = @version_number = @doc.version_number @milestone_metadata.version end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object
87 88 89 |
# File 'lib/memories/milestones_proxy.rb', line 87 def method_missing(method_name, *args, &block) @milestone_metadata.send method_name, *args, &block end |
Instance Method Details
#milestone? ⇒ Boolean
85 |
# File 'lib/memories/milestones_proxy.rb', line 85 def milestone?; true; end |