class Dspace::Policy

Attributes

action[R]
end_date[R]
eperson_id[R]
group_id[R]
id[R]
resource_id[R]
resource_type[R]
rp_description[R]
rp_name[R]
rp_type[R]
start_date[R]

Public Class Methods

new(args) click to toggle source
# File lib/dspace/policy.rb, line 8
def initialize args
  @id = args['id']
  @action = args['action']
  @eperson_id = args['epersonId']
  @group_id = args['groupId']
  @resource_id = args['resourceId']
  @resource_type = args['resourceType']
  @rp_description = args['rpDescription']
  @rp_name = args['rpName']
  @rp_type = args['rpType']
  @start_date = args['startDate']
  @end_date = args['endDate']
end

Public Instance Methods

to_h() click to toggle source
# File lib/dspace/policy.rb, line 22
def to_h
  {
      id: @id,
      action: @action,
      epersonId: @eperson_id,
      groupId: @group_id,
      resourceId: @resource_id,
      resourceType: @resource_type,
      rpDescription: @rp_description,
      rpName: @rp_name,
      rpType: @rp_type,
      startDate: @start_date,
      endDate: @end_date
  }
end