Class: ExchangeRatesGenerator::Formatters::Ruby
- Inherits:
-
Base
- Object
- Base
- ExchangeRatesGenerator::Formatters::Ruby
show all
- Defined in:
- lib/exchange-rates-generator/formatters/ruby.rb
Instance Attribute Summary
Attributes inherited from Base
#currency, #rates
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
formatters, inherited, #to_s
Constructor Details
#initialize(currency, rates) ⇒ Ruby
Returns a new instance of Ruby.
4
5
6
|
# File 'lib/exchange-rates-generator/formatters/ruby.rb', line 4
def initialize(currency, rates)
super(currency, rates)
end
|
Class Method Details
.default_extension ⇒ Object
17
18
19
|
# File 'lib/exchange-rates-generator/formatters/ruby.rb', line 17
def default_extension
:rb
end
|
.description ⇒ Object
21
22
23
|
# File 'lib/exchange-rates-generator/formatters/ruby.rb', line 21
def description
"Ruby Formatter"
end
|
Instance Method Details
#default_extension ⇒ Object
8
9
10
|
# File 'lib/exchange-rates-generator/formatters/ruby.rb', line 8
def default_extension
self.class.default_extension
end
|
#description ⇒ Object
12
13
14
|
# File 'lib/exchange-rates-generator/formatters/ruby.rb', line 12
def description
self.class.description
end
|