Class: Rubyplat::Requests::RefillInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyplat/requests/refill_info.rb

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ RefillInfo

Returns a new instance of RefillInfo.

Parameters:

  • params (Hash) (defaults to: {})

    arguments to create request

  • [Integer] (Hash)

    a customizable set of options

  • [String] (Hash)

    a customizable set of options



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

#bodyObject



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