Class: SDM::AccessRequestListRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

AccessRequestListRequest specifies criteria for retrieving a list of AccessRequest records

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filter: nil) ⇒ AccessRequestListRequest

Returns a new instance of AccessRequestListRequest.



1048
1049
1050
1051
1052
# File 'lib/models/porcelain.rb', line 1048

def initialize(
  filter: nil
)
  @filter = filter == nil ? "" : filter
end

Instance Attribute Details

#filterObject

A human-readable filter query string.



1046
1047
1048
# File 'lib/models/porcelain.rb', line 1046

def filter
  @filter
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1054
1055
1056
1057
1058
1059
1060
# File 'lib/models/porcelain.rb', line 1054

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end