Class: Junziqian::Model::Signatory
- Inherits:
-
Object
- Object
- Junziqian::Model::Signatory
- Defined in:
- lib/junziqian/model/signatory.rb
Instance Method Summary collapse
- #hash_values ⇒ Object
-
#initialize(options = {}) ⇒ Signatory
constructor
A new instance of Signatory.
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 = {} .each do |k, v| if self.respond_to?(k) self.send("#{k}=", v) end end end |
Instance Method Details
#hash_values ⇒ Object
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 |