Class: Stripe::ThinEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/stripe/thin_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_payload = {}) ⇒ ThinEvent

Returns a new instance of ThinEvent.



7
8
9
10
11
12
13
14
15
# File 'lib/stripe/thin_event.rb', line 7

def initialize(event_payload = {})
  @id = event_payload[:id]
  @type = event_payload[:type]
  @created = event_payload[:created]
  @context = event_payload[:context]
  @livemode = event_payload[:livemode]
  @related_object = event_payload[:related_object]
  @reason = event_payload[:reason]
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



5
6
7
# File 'lib/stripe/thin_event.rb', line 5

def context
  @context
end

#createdObject (readonly)

Returns the value of attribute created.



5
6
7
# File 'lib/stripe/thin_event.rb', line 5

def created
  @created
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/stripe/thin_event.rb', line 5

def id
  @id
end

Returns the value of attribute related_object.



5
6
7
# File 'lib/stripe/thin_event.rb', line 5

def related_object
  @related_object
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/stripe/thin_event.rb', line 5

def type
  @type
end