class Wutang::Entry
Attributes
attributes[R]
path[R]
Public Class Methods
new(attributes, path)
click to toggle source
# File lib/wutang/entry.rb, line 5 def initialize(attributes, path) @attributes = attributes @path = path end
Public Instance Methods
[](key)
click to toggle source
# File lib/wutang/entry.rb, line 10 def [](key) attributes[key] end
[]=(key, value)
click to toggle source
# File lib/wutang/entry.rb, line 14 def []=(key, value) attributes[key] = value end
as_json()
click to toggle source
# File lib/wutang/entry.rb, line 18 def as_json attributes end
to_s()
click to toggle source
# File lib/wutang/entry.rb, line 22 def to_s attributes.merge(id: path).to_s end