Class: IletimerkeziSdk::Responses::SenderResponse
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- IletimerkeziSdk::Responses::SenderResponse
- Includes:
- Enumerable
- Defined in:
- lib/iletimerkezi_sdk/responses/sender_response.rb
Instance Attribute Summary
Attributes inherited from BaseResponse
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(response_body, http_status_code) ⇒ SenderResponse
constructor
A new instance of SenderResponse.
- #senders ⇒ Object
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 |
#senders ⇒ Object
15 16 17 |
# File 'lib/iletimerkezi_sdk/responses/sender_response.rb', line 15 def senders @senders end |