mirror of
https://github.com/dkam/paapi.git
synced 2025-12-28 07:04:53 +00:00
Delegate dig to the hash which defines the item
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
require 'nameable'
|
||||
require 'forwardable'
|
||||
|
||||
module Paapi
|
||||
class Item
|
||||
extend Forwardable
|
||||
attr_accessor :hash
|
||||
|
||||
def_delegators :@hash, :dig
|
||||
|
||||
def initialize(data)
|
||||
@hash = data
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user