Module: Patreon::Schemas::Pledge

Defined in:
lib/patreon/schemas/pledge.rb

Defined Under Namespace

Classes: Attributes, Relationships

Class Method Summary collapse

Class Method Details

.default_attributesObject



28
29
30
31
32
33
34
35
36
# File 'lib/patreon/schemas/pledge.rb', line 28

def default_attributes
  [
    Attributes::AMOUNT_CENTS,
    Attributes::DECLINED_SINCE,
    Attributes::CREATED_AT,
    Attributes::PLEDGE_CAP_CENTS,
    Attributes::PATRON_PAYS_FEES,
  ]
end

.default_relationshipsObject



38
39
40
41
42
43
44
45
46
# File 'lib/patreon/schemas/pledge.rb', line 38

def default_relationships
  [
    Relationships::PATRON,
    Relationships::REWARD,
    Relationships::CREATOR,
    Relationships::ADDRESS,
    Relationships::PLEDGE_VAT_LOCATION,
  ]
end