Class: Jekyll::Copyr::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll-copyr/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task_hash = {}) ⇒ Task

Returns a new instance of Task.



8
9
10
11
# File 'lib/jekyll-copyr/task.rb', line 8

def initialize(task_hash = {})
  @from = task_hash.fetch "from", nil
  @to = task_hash.fetch "to", nil
end

Instance Attribute Details

#fromObject

Returns the value of attribute from.



6
7
8
# File 'lib/jekyll-copyr/task.rb', line 6

def from
  @from
end

#toObject

Returns the value of attribute to.



6
7
8
# File 'lib/jekyll-copyr/task.rb', line 6

def to
  @to
end