Class: ZendeskRails::Testing::Comment

Inherits:
Resource
  • Object
show all
Defined in:
lib/zendesk_rails/testing.rb

Instance Method Summary collapse

Methods inherited from Resource

all, clear!, #method_missing

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