Class: GustoEmbedded::Models::Shared::Fields
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Fields
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/fields_.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(data_type: nil, required: nil, key: nil, value: nil, x: nil, y: nil, width: nil, height: nil, page_number: nil) ⇒ Fields
constructor
A new instance of Fields.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(data_type: nil, required: nil, key: nil, value: nil, x: nil, y: nil, width: nil, height: nil, page_number: nil) ⇒ Fields
Returns a new instance of Fields.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/gusto_embedded/models/shared/fields_.rb', line 35 def initialize(data_type: nil, required: nil, key: nil, value: nil, x: nil, y: nil, width: nil, height: nil, page_number: nil) @data_type = data_type @required = required @key = key @value = value @x = x @y = y @width = width @height = height @page_number = page_number end |
Instance Method Details
#==(other) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/gusto_embedded/models/shared/fields_.rb', line 48 def ==(other) return false unless other.is_a? self.class return false unless @data_type == other.data_type return false unless @required == other.required return false unless @key == other.key return false unless @value == other.value return false unless @x == other.x return false unless @y == other.y return false unless @width == other.width return false unless @height == other.height return false unless @page_number == other.page_number true end |