Class: Dina::AgentRole

Inherits:
Object
  • Object
show all
Defined in:
lib/dina/components/agent_role.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAgentRole

Returns a new instance of AgentRole.



8
9
# File 'lib/dina/components/agent_role.rb', line 8

def initialize
end

Instance Attribute Details

#agentObject

A known UUID for a Person



3
4
5
# File 'lib/dina/components/agent_role.rb', line 3

def agent
  @agent
end

#dateObject

Returns the value of attribute date.



5
6
7
# File 'lib/dina/components/agent_role.rb', line 5

def date
  @date
end

#remarksObject

Returns the value of attribute remarks.



6
7
8
# File 'lib/dina/components/agent_role.rb', line 6

def remarks
  @remarks
end

#rolesObject

an array of roles: Owner, Borrower, Prepared By



4
5
6
# File 'lib/dina/components/agent_role.rb', line 4

def roles
  @roles
end

Instance Method Details

#to_hashObject



11
12
13
14
15
# File 'lib/dina/components/agent_role.rb', line 11

def to_hash
  hash = {}
  instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
  hash
end