Class: Itsf::Services::V2::Message::Base
- Inherits:
-
Object
- Object
- Itsf::Services::V2::Message::Base
- Defined in:
- lib/itsf/services/v2/message/base.rb
Instance Attribute Summary collapse
-
#indent ⇒ Object
Returns the value of attribute indent.
-
#level ⇒ Object
Returns the value of attribute level.
-
#message ⇒ Object
Returns the value of attribute message.
-
#service_class ⇒ Object
Returns the value of attribute service_class.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
- #to_s(format = :default) ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/itsf/services/v2/message/base.rb', line 8 def initialize(attributes = {}) send_attributes(attributes) end |
Instance Attribute Details
#indent ⇒ Object
Returns the value of attribute indent.
6 7 8 |
# File 'lib/itsf/services/v2/message/base.rb', line 6 def indent @indent end |
#level ⇒ Object
Returns the value of attribute level.
6 7 8 |
# File 'lib/itsf/services/v2/message/base.rb', line 6 def level @level end |
#message ⇒ Object
Returns the value of attribute message.
6 7 8 |
# File 'lib/itsf/services/v2/message/base.rb', line 6 def @message end |
#service_class ⇒ Object
Returns the value of attribute service_class.
6 7 8 |
# File 'lib/itsf/services/v2/message/base.rb', line 6 def service_class @service_class end |
Instance Method Details
#to_s(format = :default) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/itsf/services/v2/message/base.rb', line 12 def to_s(format = :default) case format when :html when :default "[#{service_class.name} | #{level}]: #{' ' * indent}#{}" end end |