module PoroProperties

Constants

VERSION

Public Class Methods

included(base) click to toggle source
# File lib/poro_properties.rb, line 5
def self.included(base)
  base.extend ClassMethods
end

Public Instance Methods

to_h() click to toggle source
# File lib/poro_properties.rb, line 9
def to_h
  self.class.properties_names
    .inject({}) { |memo, key| memo.merge(key => public_send(key)) }
end