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, #assign_root_attributes, #to_http_post, #to_xml

Constructor Details

#initialize(opts = {}, root_attributes = nil) ⇒ 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 = {}, root_attributes = nil)
  super('LabelRequest', opts, root_attributes)
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