Class: Pinspec::Batch::Outcome

Inherits:
Data
  • Object
show all
Defined in:
lib/pinspec/batch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detailObject (readonly)

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



7
8
9
# File 'lib/pinspec/batch.rb', line 7

def detail
  @detail
end

#fileObject (readonly)

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



7
8
9
# File 'lib/pinspec/batch.rb', line 7

def file
  @file
end

#pinnedObject (readonly)

Returns the value of attribute pinned

Returns:

  • (Object)

    the current value of pinned



7
8
9
# File 'lib/pinspec/batch.rb', line 7

def pinned
  @pinned
end

#spec_pathObject (readonly)

Returns the value of attribute spec_path

Returns:

  • (Object)

    the current value of spec_path



7
8
9
# File 'lib/pinspec/batch.rb', line 7

def spec_path
  @spec_path
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



7
8
9
# File 'lib/pinspec/batch.rb', line 7

def status
  @status
end

#targetObject (readonly)

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



7
8
9
# File 'lib/pinspec/batch.rb', line 7

def target
  @target
end

Instance Method Details

#pinned?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/pinspec/batch.rb', line 8

def pinned?
  status == :pinned
end

#refused?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/pinspec/batch.rb', line 12

def refused?
  status == :refused
end