Class: Memories::MilestoneProxy

Inherits:
VersionProxy show all
Defined in:
lib/memories/milestones_proxy.rb

Instance Attribute Summary

Attributes inherited from VersionProxy

#version_number

Instance Method Summary collapse

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

Returns:

  • (Boolean)


85
# File 'lib/memories/milestones_proxy.rb', line 85

def milestone?; true; end