Class: WikiFari::Custom
- Inherits:
-
Object
- Object
- WikiFari::Custom
- Defined in:
- lib/wikifari/custom.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ Custom
constructor
A new instance of Custom.
- #json ⇒ Object
- #raw ⇒ Object
Constructor Details
#initialize(data) ⇒ Custom
Returns a new instance of Custom.
3 4 5 6 |
# File 'lib/wikifari/custom.rb', line 3 def initialize(data) @data = JSON.parse data @raw = data end |
Instance Method Details
#json ⇒ Object
8 9 10 |
# File 'lib/wikifari/custom.rb', line 8 def json @data end |
#raw ⇒ Object
12 13 14 |
# File 'lib/wikifari/custom.rb', line 12 def raw @raw end |