Class SlimTimer::Record
In: lib/slimtimer4r.rb
Parent: Object

The Record class is used to encapsulate the data returned from the SlimTimer API. This allows access to hash key/value pairs using the @entry.task.name format rather than @entry["task"]["name"].

Methods

[]   attributes   id   inspect   method_missing   new   respond_to?   to_s  

Attributes

hash  [R] 
type  [R] 

Public Class methods

Public Instance methods

Checks to see if one of the values of the hash is another hash, and if so, changes it to a Record object. This allows you to use time_entry.task.name instead of time_entry.task["name"]

Used to convert an unknown method into a hash key. For example, item.user_id would become item["user_id"]

[Validate]