Class: KeytechKit::NoteType

Inherits:
Object
  • Object
show all
Defined in:
lib/keytechKit/elements/notes/note_type.rb

Overview

A single note

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ NoteType

Returns a new instance of NoteType.



13
14
15
16
17
18
19
20
21
# File 'lib/keytechKit/elements/notes/note_type.rb', line 13

def initialize(data)
  @allow_modify = data['AllowModify']
  @displaytext = data['Displaytext']
  @id = data['ID']
  @is_document_info = data['IsDocumentInfo']
  @is_folder_info = data['IsFolderInfo']
  @is_document_info = data['IsMasterItemInfo']
  @is_system_info = data['IsSystemInfo']
end

Instance Attribute Details

#allow_modifyObject

Returns the value of attribute allow_modify.



5
6
7
# File 'lib/keytechKit/elements/notes/note_type.rb', line 5

def allow_modify
  @allow_modify
end

#displaytextObject

Returns the value of attribute displaytext.



6
7
8
# File 'lib/keytechKit/elements/notes/note_type.rb', line 6

def displaytext
  @displaytext
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/keytechKit/elements/notes/note_type.rb', line 7

def id
  @id
end

#is_document_infoObject

Returns the value of attribute is_document_info.



8
9
10
# File 'lib/keytechKit/elements/notes/note_type.rb', line 8

def is_document_info
  @is_document_info
end

#is_folder_infoObject

Returns the value of attribute is_folder_info.



9
10
11
# File 'lib/keytechKit/elements/notes/note_type.rb', line 9

def is_folder_info
  @is_folder_info
end

#is_masteritem_infoObject

Returns the value of attribute is_masteritem_info.



10
11
12
# File 'lib/keytechKit/elements/notes/note_type.rb', line 10

def is_masteritem_info
  @is_masteritem_info
end

#is_system_infoObject

Returns the value of attribute is_system_info.



11
12
13
# File 'lib/keytechKit/elements/notes/note_type.rb', line 11

def is_system_info
  @is_system_info
end