Class: Patreon::Tier

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

Constant Summary collapse

DEFAULT_FIELDS =
"amount_cents,created_at,description,discord_role_ids,edited_at,image_url,patron_count,post_count,published,published_at,remaining,requires_shipping,title,unpublished_at,url,user_limit"

Instance Method Summary collapse

Methods inherited from Object

#to_ostruct

Constructor Details

#initialize(options = {}) ⇒ Tier

Returns a new instance of Tier.



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

def initialize(options = {})
  super options

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