Class: MSFL::Datasets::Person

Inherits:
Base
  • Object
show all
Defined in:
lib/msfl/datasets/person.rb

Overview

This is a fake dataset definition that shows the structure for composing your own and is used for testing

msfl

Instance Method Summary collapse

Methods inherited from Base

dataset_from, #has_field?, #has_operator?, #operator_conforms?, #operators, register_dataset, registered_datasets, registered_datasets=, #type_conforms?, #validate_operator_conforms, #validate_type_conforms, #validate_value_conforms, #value_conforms?

Methods included from Validators::Definitions::HashKey

#all_logical_operators?, #all_operators?, #any_operators?, #binary_operators, #foreign_operators, #hash_key_operators, #logical_operators, #operator?, #partial_operators, #valid_hash_key?, #valid_hash_keys

Instance Method Details

#fieldsObject



14
15
16
# File 'lib/msfl/datasets/person.rb', line 14

def fields
  [:name, :gender, :age]
end

#foreignsObject



10
11
12
# File 'lib/msfl/datasets/person.rb', line 10

def foreigns
  [:car, :animal]
end