Class: Patreon::User

Inherits:
Object
  • Object
show all
Defined in:
lib/patreon/objects/user.rb

Constant Summary collapse

DEFAULT_FIELDS =
"about,can_see_nsfw,created,email,first_name,full_name,hide_pledges,image_url,is_email_verified,last_name,like_count,social_connections,thumb_url,url,vanity"

Instance Method Summary collapse

Methods inherited from Object

#to_ostruct

Constructor Details

#initialize(options = {}) ⇒ User

Returns a new instance of User.



6
7
8
9
10
# File 'lib/patreon/objects/user.rb', line 6

def initialize(options = {})
  super options

  self.id = options["id"] if options["id"]
end