Class: Rubyplat::Requests::RefillInfo
- Inherits:
-
Object
- Object
- Rubyplat::Requests::RefillInfo
- Defined in:
- lib/rubyplat/requests/refill_info.rb
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(params = {}) ⇒ RefillInfo
constructor
A new instance of RefillInfo.
Constructor Details
#initialize(params = {}) ⇒ RefillInfo
Returns a new instance of RefillInfo.
13 14 15 16 17 18 19 20 |
# File 'lib/rubyplat/requests/refill_info.rb', line 13 def initialize(params = {}) @sender = params[:sender] @receiver = params[:receiver] @operator = params[:operator] @accept_keys = params[:accept_keys] @session = params[:session] @on_date = DateTime.parse(params[:on_date].to_s).strftime('%Y%m%d') end |
Instance Method Details
#body ⇒ Object
22 23 24 |
# File 'lib/rubyplat/requests/refill_info.rb', line 22 def body body_parameters.compact.join("\r\n").encode(Encoding::WINDOWS_1251) end |