class Granify::Model::Base

Attributes

branch[RW]
browser[RW]
command[RW]
data[RW]
start[RW]

Public Class Methods

new(hash = nil) click to toggle source
# File lib/model.rb, line 6
def initialize(hash = nil)
  @data = hash || Granify::Model::Data.new

  # Current time
  #@time = @data.start
  # Time the command was executed
  @start = Time.now
  # Current working branch
  @branch = @data.branch
  # Browser to execute tests in
  @browser = @data.browser
  # Instantiate the command execution class
  @command = Command::Exec.new
end

Public Instance Methods

bind(hash) click to toggle source
# File lib/model.rb, line 21
def bind(hash)
  initialize(hash)
end