Class: Megalopolis::Index
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
Instance Method Summary collapse
- #fetch ⇒ Object (also: #get)
-
#initialize(base_url, index) ⇒ Index
constructor
A new instance of Index.
Methods inherited from MHash
Constructor Details
#initialize(base_url, index) ⇒ Index
Returns a new instance of Index.
68 69 70 71 72 |
# File 'lib/megalopolis/scheme.rb', line 68 def initialize(base_url, index) @base_url = base_url @index = index super(@index) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Megalopolis::MHash
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
65 66 67 |
# File 'lib/megalopolis/scheme.rb', line 65 def base_url @base_url end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
66 67 68 |
# File 'lib/megalopolis/scheme.rb', line 66 def index @index end |