Class: Serwersms::Error
- Inherits:
-
Object
- Object
- Serwersms::Error
- Defined in:
- lib/library/error.rb
Instance Method Summary collapse
-
#initialize(obj) ⇒ Error
constructor
A new instance of Error.
- #view(code) ⇒ Object
Constructor Details
#initialize(obj) ⇒ Error
Returns a new instance of Error.
2 3 4 |
# File 'lib/library/error.rb', line 2 def initialize(obj) @serwersms = obj end |
Instance Method Details
#view(code) ⇒ Object
15 16 17 |
# File 'lib/library/error.rb', line 15 def view(code) @serwersms.call('error/'+code); end |