Class: EndiciaLabelServer::Service::MailpieceShape
- Inherits:
-
Object
- Object
- EndiciaLabelServer::Service::MailpieceShape
- Defined in:
- lib/endicia_label_server/service/mailpiece_shape.rb
Instance Attribute Summary collapse
-
#service_name ⇒ Object
Returns the value of attribute service_name.
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(service_name) ⇒ MailpieceShape
constructor
A new instance of MailpieceShape.
Constructor Details
#initialize(service_name) ⇒ MailpieceShape
Returns a new instance of MailpieceShape.
13 14 15 |
# File 'lib/endicia_label_server/service/mailpiece_shape.rb', line 13 def initialize(service_name) @service_name = service_name end |
Instance Attribute Details
#service_name ⇒ Object
Returns the value of attribute service_name.
5 6 7 |
# File 'lib/endicia_label_server/service/mailpiece_shape.rb', line 5 def service_name @service_name end |
Instance Method Details
#all ⇒ Object
17 18 19 |
# File 'lib/endicia_label_server/service/mailpiece_shape.rb', line 17 def all send("#{Util.underscore(service_name).gsub(' ', '_').to_sym}_mailpiece_shapes") end |