Class: Bunto::Commands::PostMovementInfo
- Inherits:
-
Object
- Object
- Bunto::Commands::PostMovementInfo
- Defined in:
- lib/bunto/commands/unpublish.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #from ⇒ Object
-
#initialize(params) ⇒ PostMovementInfo
constructor
A new instance of PostMovementInfo.
- #to ⇒ Object
Constructor Details
#initialize(params) ⇒ PostMovementInfo
Returns a new instance of PostMovementInfo.
39 40 41 |
# File 'lib/bunto/commands/unpublish.rb', line 39 def initialize(params) @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
38 39 40 |
# File 'lib/bunto/commands/unpublish.rb', line 38 def params @params end |
Instance Method Details
#from ⇒ Object
43 44 45 |
# File 'lib/bunto/commands/unpublish.rb', line 43 def from params.path end |
#to ⇒ Object
47 48 49 |
# File 'lib/bunto/commands/unpublish.rb', line 47 def to "_drafts/#{params.name}" end |