Class: Adminterface::Data::Countries
- Defined in:
- lib/adminterface/data/countries.rb
Constant Summary collapse
- PluginMissing =
Class.new(StandardError)
Instance Attribute Summary collapse
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(locale, options = {}) ⇒ Countries
constructor
A new instance of Countries.
Methods inherited from Base
Constructor Details
#initialize(locale, options = {}) ⇒ Countries
Returns a new instance of Countries.
10 11 12 13 |
# File 'lib/adminterface/data/countries.rb', line 10 def initialize(locale, = {}) @locale = locale @options = end |
Instance Attribute Details
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
8 9 10 |
# File 'lib/adminterface/data/countries.rb', line 8 def locale @locale end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/adminterface/data/countries.rb', line 8 def @options end |
Instance Method Details
#call ⇒ Object
15 16 17 18 |
# File 'lib/adminterface/data/countries.rb', line 15 def call raise_error if plugin_missing? countries end |