Class: Esendex::Requests::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/xednese/requests/account.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Account

Returns a new instance of Account.


4
5
6
# File 'lib/xednese/requests/account.rb', line 4

def initialize(args)
  @args = args
end

Instance Method Details

#serialiseObject


8
9
10
11
12
13
14
# File 'lib/xednese/requests/account.rb', line 8

def serialise
  Nokogiri::XML::Builder.new(encoding: 'utf-8') do |xml|
    xml.(xmlns: 'http://api.esendex.com/ns/') {
      xml.label @args[:label]
    }
  end.to_xml
end