Class: ZendeskRails::Testing::Comment
- Defined in:
- lib/zendesk_rails/testing.rb
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Comment
constructor
A new instance of Comment.
Methods inherited from Resource
Constructor Details
#initialize(attributes) ⇒ Comment
Returns a new instance of Comment.
29 30 31 32 33 34 35 |
# File 'lib/zendesk_rails/testing.rb', line 29 def initialize(attributes) attributes.reverse_merge!( created_at: Time.now, updated_at: Time.now ) super(attributes) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ZendeskRails::Testing::Resource