Class: KaveRestApi::ResponseConfig
- Inherits:
-
Object
- Object
- KaveRestApi::ResponseConfig
- Defined in:
- lib/kavenegar-ruby/responds/config.rb
Instance Attribute Summary collapse
-
#apilogs ⇒ Object
Returns the value of attribute apilogs.
-
#dailyreport ⇒ Object
Returns the value of attribute dailyreport.
-
#debugmode ⇒ Object
Returns the value of attribute debugmode.
-
#defaultsender ⇒ Object
Returns the value of attribute defaultsender.
-
#mincreditalarm ⇒ Object
Returns the value of attribute mincreditalarm.
-
#resendfailed ⇒ Object
Returns the value of attribute resendfailed.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#statusmessage ⇒ Object
readonly
Returns the value of attribute statusmessage.
Instance Method Summary collapse
- #entries ⇒ Object
- #full_message_errors ⇒ Object
- #valid? ⇒ Boolean
- #validate(response = nil) ⇒ Object
Instance Attribute Details
#apilogs ⇒ Object
Returns the value of attribute apilogs.
4 5 6 |
# File 'lib/kavenegar-ruby/responds/config.rb', line 4 def apilogs @apilogs end |
#dailyreport ⇒ Object
Returns the value of attribute dailyreport.
4 5 6 |
# File 'lib/kavenegar-ruby/responds/config.rb', line 4 def dailyreport @dailyreport end |
#debugmode ⇒ Object
Returns the value of attribute debugmode.
4 5 6 |
# File 'lib/kavenegar-ruby/responds/config.rb', line 4 def debugmode @debugmode end |
#defaultsender ⇒ Object
Returns the value of attribute defaultsender.
4 5 6 |
# File 'lib/kavenegar-ruby/responds/config.rb', line 4 def defaultsender @defaultsender end |
#mincreditalarm ⇒ Object
Returns the value of attribute mincreditalarm.
4 5 6 |
# File 'lib/kavenegar-ruby/responds/config.rb', line 4 def mincreditalarm @mincreditalarm end |
#resendfailed ⇒ Object
Returns the value of attribute resendfailed.
4 5 6 |
# File 'lib/kavenegar-ruby/responds/config.rb', line 4 def resendfailed @resendfailed end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/kavenegar-ruby/responds/config.rb', line 3 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/kavenegar-ruby/responds/config.rb', line 3 def status @status end |
#statusmessage ⇒ Object (readonly)
Returns the value of attribute statusmessage.
3 4 5 |
# File 'lib/kavenegar-ruby/responds/config.rb', line 3 def @statusmessage end |
Instance Method Details
#entries ⇒ Object
16 17 18 |
# File 'lib/kavenegar-ruby/responds/config.rb', line 16 def entries return @response['entries'] end |
#full_message_errors ⇒ Object
20 21 22 |
# File 'lib/kavenegar-ruby/responds/config.rb', line 20 def return KaveRestApi::ERRORS[@response['return']['status'].to_s] end |
#valid? ⇒ Boolean
12 13 14 |
# File 'lib/kavenegar-ruby/responds/config.rb', line 12 def valid? @valid end |
#validate(response = nil) ⇒ Object
6 7 8 9 10 |
# File 'lib/kavenegar-ruby/responds/config.rb', line 6 def validate(response = nil) @response = response perform_validation return self end |