Class: Junziqian::Model::Signatory

Inherits:
Object
  • Object
show all
Defined in:
lib/junziqian/model/signatory.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Signatory

Returns a new instance of Signatory.



9
10
11
12
13
14
15
# File 'lib/junziqian/model/signatory.rb', line 9

def initialize options= {}
  options.each do |k, v|
    if self.respond_to?(k)
      self.send("#{k}=", v)
    end
  end
end

Instance Method Details

#hash_valuesObject



17
18
19
20
21
22
# File 'lib/junziqian/model/signatory.rb', line 17

def hash_values
  [:userType, :fullName, :identityType, :identityCard, :mobile, :email, :address, :authLeve, :authenticationLevel, :authLevel, :authLevelRange, :forceAuthentication, :signLevel, :forceEvidence, :chapteJson, :noNeedEvidence, :orderNum, :insureYear, :noNeedVerify, :serverCaAuto, :readTime].inject({}) do |hash, item|
    hash[item] = self.send(item)
    hash
  end.to_json
end