Class: Idnow::DocumentDefinition
- Inherits:
-
Object
- Object
- Idnow::DocumentDefinition
- Includes:
- Jsonable
- Defined in:
- lib/idnow/models/document_definition.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#optional ⇒ Object
Returns the value of attribute optional.
-
#sort_order ⇒ Object
Returns the value of attribute sort_order.
Instance Method Summary collapse
-
#initialize(data) ⇒ DocumentDefinition
constructor
A new instance of DocumentDefinition.
Methods included from Jsonable
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
#identifier ⇒ Object
Returns the value of attribute identifier.
7 8 9 |
# File 'lib/idnow/models/document_definition.rb', line 7 def identifier @identifier end |
#mime_type ⇒ Object
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 |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/idnow/models/document_definition.rb', line 7 def name @name end |
#optional ⇒ Object
Returns the value of attribute optional.
7 8 9 |
# File 'lib/idnow/models/document_definition.rb', line 7 def optional @optional end |
#sort_order ⇒ Object
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 |