class Poros::Info

Public Class Methods

new(object) click to toggle source
# File lib/poros/info.rb, line 3
def initialize(object)
  @object = object
end

Public Instance Methods

file_path() click to toggle source
# File lib/poros/info.rb, line 7
def file_path
  @object.class.file_path(@object.uuid)
end
to_h() click to toggle source
# File lib/poros/info.rb, line 11
def to_h
  @object.class.poro_attrs.map { |column|
    [column, @object.send(column.to_s)]
  }.to_h
end