Class: Idnow::DocumentDefinition

Inherits:
Object
  • Object
show all
Includes:
Jsonable
Defined in:
lib/idnow/models/document_definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Jsonable

#to_h, #to_json

Constructor Details

#initialize(data) ⇒ DocumentDefinition

Returns a new instance of DocumentDefinition.



9
10
11
12
13
14
15
# File 'lib/idnow/models/document_definition.rb', line 9

def initialize(data)
  @optional = data['optional']
  @name = data['name']
  @identifier = data['identifier']
  @mime_type = data['mimeType']
  @sort_order = data['sortOrder']
end

Instance Attribute Details

#identifierObject

Returns the value of attribute identifier.



7
8
9
# File 'lib/idnow/models/document_definition.rb', line 7

def identifier
  @identifier
end

#mime_typeObject

Returns the value of attribute mime_type.



7
8
9
# File 'lib/idnow/models/document_definition.rb', line 7

def mime_type
  @mime_type
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/idnow/models/document_definition.rb', line 7

def name
  @name
end

#optionalObject

Returns the value of attribute optional.



7
8
9
# File 'lib/idnow/models/document_definition.rb', line 7

def optional
  @optional
end

#sort_orderObject

Returns the value of attribute sort_order.



7
8
9
# File 'lib/idnow/models/document_definition.rb', line 7

def sort_order
  @sort_order
end