Class: Link

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource
Defined in:
models/link.rb

Overview

Link between entities in Vulnreport or an external system

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods included from DataMapper::Resource

#make_dirty

Class Method Details

+ (String) fromId(repository = nil)

Returns ID of resource the link is from

Returns:

  • (String)

    ID of resource the link is from



14
# File 'models/link.rb', line 14

property :fromId,		String

+ (LINK_TYPE) fromType(repository = nil)

Returns Type of resource the link is from

Returns:

  • (LINK_TYPE)

    Type of resource the link is from



13
# File 'models/link.rb', line 13

property :fromType,		Integer

+ (Integer) id(repository = nil)

Returns Primary Key

Returns:

  • (Integer)

    Primary Key



12
# File 'models/link.rb', line 12

property :id,			Serial

+ (String) toId(repository = nil)

Returns ID of resource the link is to

Returns:

  • (String)

    ID of resource the link is to



16
# File 'models/link.rb', line 16

property :toId,			String

+ (LINK_TYPE) toType(repository = nil)

Returns Type of resource the link is to

Returns:

  • (LINK_TYPE)

    Type of resource the link is to



15
# File 'models/link.rb', line 15

property :toType,		Integer

Instance Method Details

- (String) fromId

Returns ID of resource the link is from

Returns:

  • (String)

    ID of resource the link is from



14
# File 'models/link.rb', line 14

property :fromId,		String

- (String) fromId=(value)

Returns ID of resource the link is from

Returns:

  • (String)

    ID of resource the link is from



14
# File 'models/link.rb', line 14

property :fromId,		String

- (LINK_TYPE) fromType

Returns Type of resource the link is from

Returns:

  • (LINK_TYPE)

    Type of resource the link is from



13
# File 'models/link.rb', line 13

property :fromType,		Integer

- (LINK_TYPE) fromType=(value)

Returns Type of resource the link is from

Returns:

  • (LINK_TYPE)

    Type of resource the link is from



13
# File 'models/link.rb', line 13

property :fromType,		Integer

- (Integer) id

Returns Primary Key

Returns:

  • (Integer)

    Primary Key



12
# File 'models/link.rb', line 12

property :id,			Serial

- (Integer) id=(value)

Returns Primary Key

Returns:

  • (Integer)

    Primary Key



12
# File 'models/link.rb', line 12

property :id,			Serial

- (String) toId

Returns ID of resource the link is to

Returns:

  • (String)

    ID of resource the link is to



16
# File 'models/link.rb', line 16

property :toId,			String

- (String) toId=(value)

Returns ID of resource the link is to

Returns:

  • (String)

    ID of resource the link is to



16
# File 'models/link.rb', line 16

property :toId,			String

- (LINK_TYPE) toType

Returns Type of resource the link is to

Returns:

  • (LINK_TYPE)

    Type of resource the link is to



15
# File 'models/link.rb', line 15

property :toType,		Integer

- (LINK_TYPE) toType=(value)

Returns Type of resource the link is to

Returns:

  • (LINK_TYPE)

    Type of resource the link is to



15
# File 'models/link.rb', line 15

property :toType,		Integer