Class: PostProxy::WebhookEvents::PostImportedData

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/webhook_events.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#to_h

Constructor Details

#initialize(**attrs) ⇒ PostImportedData

Returns a new instance of PostImportedData.



35
36
37
38
39
# File 'lib/postproxy/webhook_events.rb', line 35

def initialize(**attrs)
  @profile = nil
  super
  @profile = ImportedProfile.new(**@profile.transform_keys(&:to_sym)) if @profile.is_a?(Hash)
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



32
33
34
# File 'lib/postproxy/webhook_events.rb', line 32

def body
  @body
end

#created_atObject

Returns the value of attribute created_at.



32
33
34
# File 'lib/postproxy/webhook_events.rb', line 32

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



32
33
34
# File 'lib/postproxy/webhook_events.rb', line 32

def id
  @id
end

#platformObject

Returns the value of attribute platform.



32
33
34
# File 'lib/postproxy/webhook_events.rb', line 32

def platform
  @platform
end

#platform_post_idObject

Returns the value of attribute platform_post_id.



32
33
34
# File 'lib/postproxy/webhook_events.rb', line 32

def platform_post_id
  @platform_post_id
end

#posted_atObject

Returns the value of attribute posted_at.



32
33
34
# File 'lib/postproxy/webhook_events.rb', line 32

def posted_at
  @posted_at
end

#profileObject

Returns the value of attribute profile.



32
33
34
# File 'lib/postproxy/webhook_events.rb', line 32

def profile
  @profile
end

#public_idObject

Returns the value of attribute public_id.



32
33
34
# File 'lib/postproxy/webhook_events.rb', line 32

def public_id
  @public_id
end

#sourceObject

Returns the value of attribute source.



32
33
34
# File 'lib/postproxy/webhook_events.rb', line 32

def source
  @source
end