Class: LicenseFinder::Decisions::TXN

Inherits:
Struct
  • Object
show all
Defined in:
lib/license_finder/decisions.rb

Overview

WRITE

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#safe_versionsObject

Returns the value of attribute safe_versions

Returns:

  • (Object)

    the current value of safe_versions



53
54
55
# File 'lib/license_finder/decisions.rb', line 53

def safe_versions
  @safe_versions
end

#safe_whenObject

Returns the value of attribute safe_when

Returns:

  • (Object)

    the current value of safe_when



53
54
55
# File 'lib/license_finder/decisions.rb', line 53

def safe_when
  @safe_when
end

#whoObject

Returns the value of attribute who

Returns:

  • (Object)

    the current value of who



53
54
55
# File 'lib/license_finder/decisions.rb', line 53

def who
  @who
end

#whyObject

Returns the value of attribute why

Returns:

  • (Object)

    the current value of why



53
54
55
# File 'lib/license_finder/decisions.rb', line 53

def why
  @why
end

Class Method Details

.from_hash(txn) ⇒ Object



54
55
56
# File 'lib/license_finder/decisions.rb', line 54

def self.from_hash(txn)
  new(txn[:who], txn[:why], txn[:when], txn[:versions].nil? ? [] : txn[:versions])
end