Class: Filecoin::Deal

Inherits:
Dry::Struct
  • Object
show all
Extended by:
ClassMethods
Includes:
Filecoin::Deals::State
Defined in:
lib/filecoin/deal.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary

Constants included from Filecoin::Deals::State

Filecoin::Deals::State::BAD_STATES, Filecoin::Deals::State::FINISHED_STATES, Filecoin::Deals::State::GOOD_STATES, Filecoin::Deals::State::PENDING_STATES, Filecoin::Deals::State::STATES

Instance Method Summary collapse

Methods included from ClassMethods

from_deal_info

Methods included from Filecoin::Deals::State

#bad?, #finished?, #good?, #pending?

Constructor Details

#initialize(attrs = {}) ⇒ Deal

Returns a new instance of Deal.



35
36
37
# File 'lib/filecoin/deal.rb', line 35

def initialize(attrs = {})
  super
end