Class: PDTP::Server::Trust::Edge
- Inherits:
-
Object
- Object
- PDTP::Server::Trust::Edge
- Defined in:
- lib/pdtp/server/trust.rb
Overview
struct for storing a single trust relationship
Instance Attribute Summary collapse
-
#success ⇒ Object
Returns the value of attribute success.
-
#transfers ⇒ Object
Returns the value of attribute transfers.
-
#trust ⇒ Object
Returns the value of attribute trust.
Instance Method Summary collapse
-
#initialize(trust = 1.0, success = 1.0, transfers = 1.0) ⇒ Edge
constructor
A new instance of Edge.
Constructor Details
#initialize(trust = 1.0, success = 1.0, transfers = 1.0) ⇒ Edge
Returns a new instance of Edge.
31 32 33 34 35 |
# File 'lib/pdtp/server/trust.rb', line 31 def initialize(trust = 1.0, success = 1.0, transfers = 1.0) @trust = trust @success = success @transfers = transfers end |
Instance Attribute Details
#success ⇒ Object
Returns the value of attribute success.
29 30 31 |
# File 'lib/pdtp/server/trust.rb', line 29 def success @success end |
#transfers ⇒ Object
Returns the value of attribute transfers.
29 30 31 |
# File 'lib/pdtp/server/trust.rb', line 29 def transfers @transfers end |
#trust ⇒ Object
Returns the value of attribute trust.
29 30 31 |
# File 'lib/pdtp/server/trust.rb', line 29 def trust @trust end |