Class: BlockScore::Person
- Includes:
- Actions::All, Actions::Create, Actions::Retrieve
- Defined in:
- lib/blockscore/person.rb
Constant Summary collapse
- VALID =
'valid'.freeze
- INVALID =
'invalid'.freeze
Instance Attribute Summary collapse
-
#question_sets ⇒ Object
readonly
Returns the value of attribute question_sets.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Person
constructor
A new instance of Person.
- #invalid? ⇒ Boolean
- #valid? ⇒ Boolean
Methods included from Actions::All
Methods included from Actions::Retrieve
Methods included from Actions::Create
Methods inherited from Base
api_url, endpoint, #inspect, #refresh, resource, #save, #save!
Methods included from Connection
Constructor Details
#initialize(options = {}) ⇒ Person
Returns a new instance of Person.
12 13 14 15 |
# File 'lib/blockscore/person.rb', line 12 def initialize( = {}) super @question_sets = Collection.new(QuestionSet.new(person: self)) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BlockScore::Base
Instance Attribute Details
#question_sets ⇒ Object (readonly)
Returns the value of attribute question_sets.
10 11 12 |
# File 'lib/blockscore/person.rb', line 10 def question_sets @question_sets end |