Class: PersonaApi::Inquiry

Inherits:
Object
  • Object
show all
Defined in:
lib/persona_api/objects/inquiry.rb

Instance Method Summary collapse

Methods inherited from Object

#initialize, #method_missing, #respond_to_missing?

Constructor Details

This class inherits a constructor from PersonaApi::Object

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PersonaApi::Object

Instance Method Details

#accountObject



3
4
5
6
# File 'lib/persona_api/objects/inquiry.rb', line 3

def 
  # return the account id token associated with this inquiry
  relationships..data.id
end

#completed?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/persona_api/objects/inquiry.rb', line 8

def completed?
  attributes.completed_at.nil? ? false : true
end

#expired?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/persona_api/objects/inquiry.rb', line 12

def expired?
  attributes.expired_at.nil? ? false : true
end

#failed?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/persona_api/objects/inquiry.rb', line 16

def failed?
  attributes.failed_at.nil? ? false : true
end

#redacted?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/persona_api/objects/inquiry.rb', line 20

def redacted?
  attributes.redacted_at.nil? ? false : true
end

#started?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/persona_api/objects/inquiry.rb', line 24

def started?
  attributes.started_at.nil? ? false: true
end