Class: IletimerkeziSdk::Models::WebhookReport

Inherits:
Object
  • Object
show all
Defined in:
lib/iletimerkezi_sdk/models/webhook_report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ WebhookReport

Returns a new instance of WebhookReport.



6
7
8
# File 'lib/iletimerkezi_sdk/models/webhook_report.rb', line 6

def initialize(data)
  @raw_data = data
end

Instance Attribute Details

#raw_dataObject (readonly)

Returns the value of attribute raw_data.



4
5
6
# File 'lib/iletimerkezi_sdk/models/webhook_report.rb', line 4

def raw_data
  @raw_data
end

Instance Method Details

#message_idObject



10
11
12
# File 'lib/iletimerkezi_sdk/models/webhook_report.rb', line 10

def message_id
  @raw_data['message_id']
end

#operatorObject



22
23
24
# File 'lib/iletimerkezi_sdk/models/webhook_report.rb', line 22

def operator
  @raw_data['operator']
end

#phone_numberObject



26
27
28
# File 'lib/iletimerkezi_sdk/models/webhook_report.rb', line 26

def phone_number
  @raw_data['phone_number']
end

#statusObject



14
15
16
# File 'lib/iletimerkezi_sdk/models/webhook_report.rb', line 14

def status
  @raw_data['status']
end

#status_messageObject



18
19
20
# File 'lib/iletimerkezi_sdk/models/webhook_report.rb', line 18

def status_message
  @raw_data['status_message']
end