Class: Moov::Models::Components::Fulfillment
- Inherits:
-
Object
- Object
- Moov::Models::Components::Fulfillment
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/fulfillment.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(method: nil, timeframe: nil) ⇒ Fulfillment
constructor
A new instance of Fulfillment.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(method: nil, timeframe: nil) ⇒ Fulfillment
Returns a new instance of Fulfillment.
22 23 24 25 |
# File 'lib/moov/models/components/fulfillment.rb', line 22 def initialize(method: nil, timeframe: nil) @method = method @timeframe = timeframe end |
Instance Method Details
#==(other) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/moov/models/components/fulfillment.rb', line 28 def ==(other) return false unless other.is_a? self.class return false unless @method == other.method return false unless @timeframe == other.timeframe true end |