Class: TranslationCms::Api::Customers::TicketNote

Inherits:
Base
  • Object
show all
Extended by:
EnumField::EnumeratedAttribute
Defined in:
lib/translation_cms/api/customers/ticket_note.rb

Instance Method Summary collapse

Methods inherited from Base

all!, custom_scope!, default_attributes, destroy, dummy_resource!, #method_missing_with_translations_will_change, parsed!, path_with_custom_scope, resource_type!, update

Instance Method Details

#author_nameObject



15
16
17
# File 'lib/translation_cms/api/customers/ticket_note.rb', line 15

def author_name
  I18n.t :self, scope: [:account, :tickets]
end

#from_customer?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/translation_cms/api/customers/ticket_note.rb', line 11

def from_customer?
  html_class == 'in'
end

#parsed_updated_atObject



19
20
21
# File 'lib/translation_cms/api/customers/ticket_note.rb', line 19

def parsed_updated_at
  @parsed_updated_at ||= Time.zone.parse(updated_at)
end