Class: Patreon::Benefit

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

Constant Summary collapse

DEFAULT_FIELDS =
"app_external_id,app_meta,benefit_type,created_at,deliverables_due_today_count,delivered_deliverables_count,description,is_deleted,is_ended,is_published,next_deliverable_due_date,not_delivered_deliverables_count,rule_type,tiers_count,title"

Instance Method Summary collapse

Methods inherited from Object

#to_ostruct

Constructor Details

#initialize(options = {}) ⇒ Benefit

Returns a new instance of Benefit.



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

def initialize(options = {})
  super options

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