Class: WikiFari::Custom

Inherits:
Object
  • Object
show all
Defined in:
lib/wikifari/custom.rb

Instance Method Summary collapse

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

#jsonObject



8
9
10
# File 'lib/wikifari/custom.rb', line 8

def json
  @data
end

#rawObject



12
13
14
# File 'lib/wikifari/custom.rb', line 12

def raw
  @raw
end