Class: Remitmd::ContractAddresses
Overview
Contract addresses returned by GET /contracts.
Instance Attribute Summary collapse
-
#bounty ⇒ Object
readonly
Returns the value of attribute bounty.
-
#chain_id ⇒ Object
readonly
Returns the value of attribute chain_id.
-
#deposit ⇒ Object
readonly
Returns the value of attribute deposit.
-
#escrow ⇒ Object
readonly
Returns the value of attribute escrow.
-
#fee_calculator ⇒ Object
readonly
Returns the value of attribute fee_calculator.
-
#key_registry ⇒ Object
readonly
Returns the value of attribute key_registry.
-
#relayer ⇒ Object
readonly
Returns the value of attribute relayer.
-
#router ⇒ Object
readonly
Returns the value of attribute router.
-
#stream ⇒ Object
readonly
Returns the value of attribute stream.
-
#tab ⇒ Object
readonly
Returns the value of attribute tab.
-
#usdc ⇒ Object
readonly
Returns the value of attribute usdc.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ ContractAddresses
constructor
A new instance of ContractAddresses.
Methods inherited from Model
Constructor Details
#initialize(attrs) ⇒ ContractAddresses
Returns a new instance of ContractAddresses.
114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/remitmd/models.rb', line 114 def initialize(attrs) h = attrs.transform_keys(&:to_s) @chain_id = h["chain_id"]&.to_i @usdc = h["usdc"] @router = h["router"] @escrow = h["escrow"] @tab = h["tab"] @stream = h["stream"] @bounty = h["bounty"] @deposit = h["deposit"] @fee_calculator = h["fee_calculator"] @key_registry = h["key_registry"] @relayer = h["relayer"] end |
Instance Attribute Details
#bounty ⇒ Object (readonly)
Returns the value of attribute bounty.
129 130 131 |
# File 'lib/remitmd/models.rb', line 129 def bounty @bounty end |
#chain_id ⇒ Object (readonly)
Returns the value of attribute chain_id.
129 130 131 |
# File 'lib/remitmd/models.rb', line 129 def chain_id @chain_id end |
#deposit ⇒ Object (readonly)
Returns the value of attribute deposit.
129 130 131 |
# File 'lib/remitmd/models.rb', line 129 def deposit @deposit end |
#escrow ⇒ Object (readonly)
Returns the value of attribute escrow.
129 130 131 |
# File 'lib/remitmd/models.rb', line 129 def escrow @escrow end |
#fee_calculator ⇒ Object (readonly)
Returns the value of attribute fee_calculator.
129 130 131 |
# File 'lib/remitmd/models.rb', line 129 def fee_calculator @fee_calculator end |
#key_registry ⇒ Object (readonly)
Returns the value of attribute key_registry.
129 130 131 |
# File 'lib/remitmd/models.rb', line 129 def key_registry @key_registry end |
#relayer ⇒ Object (readonly)
Returns the value of attribute relayer.
129 130 131 |
# File 'lib/remitmd/models.rb', line 129 def relayer @relayer end |
#router ⇒ Object (readonly)
Returns the value of attribute router.
129 130 131 |
# File 'lib/remitmd/models.rb', line 129 def router @router end |
#stream ⇒ Object (readonly)
Returns the value of attribute stream.
129 130 131 |
# File 'lib/remitmd/models.rb', line 129 def stream @stream end |
#tab ⇒ Object (readonly)
Returns the value of attribute tab.
129 130 131 |
# File 'lib/remitmd/models.rb', line 129 def tab @tab end |
#usdc ⇒ Object (readonly)
Returns the value of attribute usdc.
129 130 131 |
# File 'lib/remitmd/models.rb', line 129 def usdc @usdc end |