Class: Remitmd::ContractAddresses

Inherits:
Model
  • Object
show all
Defined in:
lib/remitmd/models.rb

Overview

Contract addresses returned by GET /contracts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#inspect, #to_h

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

#bountyObject (readonly)

Returns the value of attribute bounty.



129
130
131
# File 'lib/remitmd/models.rb', line 129

def bounty
  @bounty
end

#chain_idObject (readonly)

Returns the value of attribute chain_id.



129
130
131
# File 'lib/remitmd/models.rb', line 129

def chain_id
  @chain_id
end

#depositObject (readonly)

Returns the value of attribute deposit.



129
130
131
# File 'lib/remitmd/models.rb', line 129

def deposit
  @deposit
end

#escrowObject (readonly)

Returns the value of attribute escrow.



129
130
131
# File 'lib/remitmd/models.rb', line 129

def escrow
  @escrow
end

#fee_calculatorObject (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_registryObject (readonly)

Returns the value of attribute key_registry.



129
130
131
# File 'lib/remitmd/models.rb', line 129

def key_registry
  @key_registry
end

#relayerObject (readonly)

Returns the value of attribute relayer.



129
130
131
# File 'lib/remitmd/models.rb', line 129

def relayer
  @relayer
end

#routerObject (readonly)

Returns the value of attribute router.



129
130
131
# File 'lib/remitmd/models.rb', line 129

def router
  @router
end

#streamObject (readonly)

Returns the value of attribute stream.



129
130
131
# File 'lib/remitmd/models.rb', line 129

def stream
  @stream
end

#tabObject (readonly)

Returns the value of attribute tab.



129
130
131
# File 'lib/remitmd/models.rb', line 129

def tab
  @tab
end

#usdcObject (readonly)

Returns the value of attribute usdc.



129
130
131
# File 'lib/remitmd/models.rb', line 129

def usdc
  @usdc
end