Class: Message::Common
- Inherits:
-
Object
- Object
- Message::Common
- Defined in:
- lib/message/resources/common.rb
Instance Method Summary collapse
-
#initialize(result:, count:) ⇒ Common
constructor
A new instance of Common.
- #run ⇒ Object
Constructor Details
#initialize(result:, count:) ⇒ Common
Returns a new instance of Common.
5 6 7 8 9 10 11 12 13 |
# File 'lib/message/resources/common.rb', line 5 def initialize(result:, count:) @result = result @count = count @last_updated = Time.now.strftime('%m') @info = Message::Helpers::Info.new(result: @result) @perc = Message::Helpers::Percentage.new @currency = Message::Helpers::Currency.new end |
Instance Method Details
#run ⇒ Object
15 16 17 |
# File 'lib/message/resources/common.rb', line 15 def run end |