Class: Bunto::Commands::PostMovementInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/bunto/commands/unpublish.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#paramsObject (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

#fromObject



43
44
45
# File 'lib/bunto/commands/unpublish.rb', line 43

def from
  params.path
end

#toObject



47
48
49
# File 'lib/bunto/commands/unpublish.rb', line 47

def to
  "_drafts/#{params.name}"
end