class EndiciaLabelServer::Parsers::UserSignUpParser
Attributes
account_id[RW]
confirmation_number[RW]
token[RW]
Public Instance Methods
success?()
click to toggle source
# File lib/endicia_label_server/parsers/user_sign_up_parser.rb, line 19 def success? !['0', 0].include? confirmation_number end
value(value)
click to toggle source
Calls superclass method
EndiciaLabelServer::Parsers::ParserBase#value
# File lib/endicia_label_server/parsers/user_sign_up_parser.rb, line 6 def value(value) super string_value = value.as_s if switch_active? :ConfirmationNumber self.confirmation_number = string_value elsif switch_active? :AccountID self.account_id = string_value elsif switch_active? :Token self.token = string_value end end