Class: Peekapp::Review
- Inherits:
-
Object
- Object
- Peekapp::Review
- Defined in:
- lib/peekapp/reviews.rb
Instance Method Summary collapse
-
#id ⇒ Object
}}}.
-
#initialize(data) ⇒ Review
constructor
{{{.
-
#method_missing(method) ⇒ Object
}}}.
Constructor Details
#initialize(data) ⇒ Review
{{{
60 61 62 |
# File 'lib/peekapp/reviews.rb', line 60 def initialize data # {{{ @data = data end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method) ⇒ Object
}}}
64 65 66 |
# File 'lib/peekapp/reviews.rb', line 64 def method_missing method # {{{ @data[method.to_sym] end |
Instance Method Details
#id ⇒ Object
}}}
68 69 70 |
# File 'lib/peekapp/reviews.rb', line 68 def id # {{{ (Digest::SHA256.new << self.username + self.title).to_s end |