Class: EndiciaLabelServer::Service::MailpieceShape

Inherits:
Object
  • Object
show all
Defined in:
lib/endicia_label_server/service/mailpiece_shape.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

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

#allObject



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