Class: Me2API::Post
Constant Summary
Constants inherited from Model
Instance Method Summary collapse
Methods inherited from Model
#[]=, #id, #initialize, #iso8601_time, #method_missing, #type, #underscore, wrap
Constructor Details
This class inherits a constructor from Me2API::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Me2API::Model
Instance Method Details
#pub_date ⇒ Object
5 6 7 8 9 10 |
# File 'lib/me2api/model/post.rb', line 5 def pub_date unless self[:pub_date].is_a?(Time) self[:pub_date] = Time.parse(self[:pub_date]) end self[:pub_date] end |