Class: Stripe::V2::Core::RelatedSingletonObject

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) ⇒ RelatedSingletonObject

Returns a new instance of RelatedSingletonObject.



37
38
39
40
# File 'lib/stripe/resources/v2/core/event_notification.rb', line 37

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

Instance Attribute Details

#type ⇒ Object (readonly)

Returns the value of attribute type.



35
36
37
# File 'lib/stripe/resources/v2/core/event_notification.rb', line 35

def type
  @type
end

#url ⇒ Object (readonly)

Returns the value of attribute url.



35
36
37
# File 'lib/stripe/resources/v2/core/event_notification.rb', line 35

def url
  @url
end