Class: Stripe::V2::Core::RelatedObject

Inherits:
Object
  • Object
show all
Defined in:
lib/stripe/resources/v2/core/event_notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(related_object) ⇒ RelatedObject

Returns a new instance of RelatedObject.



27
28
29
30
31
# File 'lib/stripe/resources/v2/core/event_notification.rb', line 27

def initialize(related_object)
  @id = related_object[:id]
  @type = related_object[:type]
  @url = related_object[:url]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



25
26
27
# File 'lib/stripe/resources/v2/core/event_notification.rb', line 25

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type.



25
26
27
# File 'lib/stripe/resources/v2/core/event_notification.rb', line 25

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url.



25
26
27
# File 'lib/stripe/resources/v2/core/event_notification.rb', line 25

def url
  @url
end