Module: Patreon::Schemas::Campaign

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

Defined Under Namespace

Classes: Attributes, Relationships

Class Method Summary collapse

Class Method Details

.default_attributesObject



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/patreon/schemas/campaign.rb', line 46

def default_attributes
  [
    Attributes::SUMMARY,
    Attributes::CREATION_NAME,
    Attributes::PAY_PER_NAME,
    Attributes::ONE_LINER,
    Attributes::MAIN_VIDEO_EMBED,
    Attributes::MAIN_VIDEO_URL,
    Attributes::IMAGE_SMALL_URL,
    Attributes::IMAGE_URL,
    Attributes::THANKS_VIDEO_URL,
    Attributes::THANKS_EMBED,
    Attributes::THANKS_MSG,
    Attributes::IS_MONTHLY,
    Attributes::IS_NSFW,
    Attributes::IS_CHARGED_IMMEDIATELY,
    Attributes::IS_PLURAL,
    Attributes::CREATED_AT,
    Attributes::PUBLISHED_AT,
    Attributes::PLEDGE_URL,
    Attributes::PLEDGE_SUM,
    Attributes::PATRON_COUNT,
    Attributes::CREATION_COUNT,
    Attributes::OUTSTANDING_PAYMENT_AMOUNT_CENTS,
  ]
end

.default_relationshipsObject



73
74
75
76
77
78
79
# File 'lib/patreon/schemas/campaign.rb', line 73

def default_relationships
  [
    Relationships::REWARDS,
    Relationships::CREATOR,
    Relationships::GOALS,
  ]
end