Class: Actions::Candlepin::MessageWrapper

Inherits:
Object
  • Object
show all
Defined in:
app/lib/actions/candlepin/import_pool_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ MessageWrapper

Returns a new instance of MessageWrapper.



6
7
8
# File 'app/lib/actions/candlepin/import_pool_handler.rb', line 6

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



4
5
6
# File 'app/lib/actions/candlepin/import_pool_handler.rb', line 4

def message
  @message
end

Instance Method Details

#contentObject



14
15
16
# File 'app/lib/actions/candlepin/import_pool_handler.rb', line 14

def content
  JSON.parse(@message.content)
end

#subjectObject



10
11
12
# File 'app/lib/actions/candlepin/import_pool_handler.rb', line 10

def subject
  @message.subject
end