Class: IletimerkeziSdk::Responses::SenderResponse

Inherits:
BaseResponse
  • Object
show all
Includes:
Enumerable
Defined in:
lib/iletimerkezi_sdk/responses/sender_response.rb

Instance Attribute Summary

Attributes inherited from BaseResponse

#data, #message, #status_code

Instance Method Summary collapse

Methods inherited from BaseResponse

#get_data, #get_message, #get_status_code, #ok?

Constructor Details

#initialize(response_body, http_status_code) ⇒ SenderResponse

Returns a new instance of SenderResponse.



6
7
8
9
# File 'lib/iletimerkezi_sdk/responses/sender_response.rb', line 6

def initialize(response_body, http_status_code)
  @senders = []
  super(response_body, http_status_code)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class IletimerkeziSdk::Responses::BaseResponse

Instance Method Details

#each(&block) ⇒ Object



11
12
13
# File 'lib/iletimerkezi_sdk/responses/sender_response.rb', line 11

def each(&block)
  @senders.each(&block)
end

#sendersObject



15
16
17
# File 'lib/iletimerkezi_sdk/responses/sender_response.rb', line 15

def senders
  @senders
end