Class: Glueby::Contract::FeeEstimator::Fixed
- Inherits:
-
Object
- Object
- Glueby::Contract::FeeEstimator::Fixed
- Includes:
- Glueby::Contract::FeeEstimator
- Defined in:
- lib/glueby/contract/fee_estimator/fixed.rb
Constant Summary collapse
- DEFAULT_FEE =
Default fee in tapyrus that is used if it is not configured
10_000
Class Attribute Summary collapse
-
.default_fixed_fee ⇒ Object
Returns the value of attribute default_fixed_fee.
Instance Attribute Summary collapse
-
#fixed_fee ⇒ Object
readonly
Returns the value of attribute fixed_fee.
Instance Method Summary collapse
-
#initialize(fixed_fee: Fixed.default_fixed_fee || DEFAULT_FEE) ⇒ Fixed
constructor
A new instance of Fixed.
Methods included from Glueby::Contract::FeeEstimator
Constructor Details
#initialize(fixed_fee: Fixed.default_fixed_fee || DEFAULT_FEE) ⇒ Fixed
Returns a new instance of Fixed.
16 17 18 |
# File 'lib/glueby/contract/fee_estimator/fixed.rb', line 16 def initialize(fixed_fee: Fixed.default_fixed_fee || DEFAULT_FEE) @fixed_fee = fixed_fee end |
Class Attribute Details
.default_fixed_fee ⇒ Object
Returns the value of attribute default_fixed_fee.
13 14 15 |
# File 'lib/glueby/contract/fee_estimator/fixed.rb', line 13 def default_fixed_fee @default_fixed_fee end |
Instance Attribute Details
#fixed_fee ⇒ Object (readonly)
Returns the value of attribute fixed_fee.
10 11 12 |
# File 'lib/glueby/contract/fee_estimator/fixed.rb', line 10 def fixed_fee @fixed_fee end |