Module: Patreon::Schemas::User

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

Defined Under Namespace

Classes: Attributes, Relationships

Class Method Summary collapse

Class Method Details

.default_attributesObject



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/patreon/schemas/user.rb', line 50

def default_attributes
  [
    Attributes::EMAIL,
    Attributes::FIRST_NAME,
    Attributes::LAST_NAME,
    Attributes::FULL_NAME,
    Attributes::GENDER,
    Attributes::STATUS,
    Attributes::VANITY,
    Attributes::ABOUT,
    Attributes::FACEBOOK_ID,
    Attributes::IMAGE_URL,
    Attributes::THUMB_URL,
    Attributes::THUMBNAILS,
    Attributes::YOUTUBE,
    Attributes::TWITTER,
    Attributes::FACEBOOK,
    Attributes::TWITCH,
    Attributes::IS_SUSPENDED,
    Attributes::IS_DELETED,
    Attributes::IS_NUKED,
    Attributes::CREATED,
    Attributes::URL,
  ]
end

.default_relationshipsObject



76
77
78
79
80
81
# File 'lib/patreon/schemas/user.rb', line 76

def default_relationships
  [
    Relationships::CAMPAIGN,
    Relationships::PLEDGES,
  ]
end