Class: Rails::AddOns::Service::Message::Base

Inherits:
Object
  • Object
show all
Defined in:
app/services/rails/add_ons/service/message/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(content, options = {}) ⇒ Base


5
6
7
8
# File 'app/services/rails/add_ons/service/message/base.rb', line 5

def initialize(content, options = {})
  @indent_level = options.fetch(:indent_level) { 1 }
  @content = content
end

Instance Method Details

#levelObject


10
11
12
# File 'app/services/rails/add_ons/service/message/base.rb', line 10

def level
  @indent_level
end

#to_sObject


14
15
16
# File 'app/services/rails/add_ons/service/message/base.rb', line 14

def to_s
  @content
end