Class: EndiciaLabelServer::Builders::PostageLabelBuilder

Inherits:
BuilderBase
  • Object
show all
Includes:
Ox
Defined in:
lib/endicia_label_server/builders/postage_label_builder.rb

Overview

The PostageLabelBuilder class builds Endicia XML LabelRequest Objects.

Author:

  • Paul Trippett

Since:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from BuilderBase

#document, #root

Instance Method Summary collapse

Methods inherited from BuilderBase

#add, #add_array, #add_hash, #to_http_post, #to_xml

Constructor Details

#initialize(opts = {}) ⇒ PostageLabelBuilder

Initializes a new RateBuilder object

Since:

  • 0.1.0


15
16
17
# File 'lib/endicia_label_server/builders/postage_label_builder.rb', line 15

def initialize(opts = {})
  super 'LabelRequest', opts
end

Instance Method Details

#post_fieldObject

Since:

  • 0.1.0


19
20
21
# File 'lib/endicia_label_server/builders/postage_label_builder.rb', line 19

def post_field
  'labelRequestXML'
end