Class: PkiExpress::TrustServiceAuthParameters
- Inherits:
-
Object
- Object
- PkiExpress::TrustServiceAuthParameters
- Defined in:
- lib/pki_express/trust_service_auth_parameters.rb
Instance Attribute Summary collapse
-
#auth_url ⇒ Object
Returns the value of attribute auth_url.
-
#service_info ⇒ Object
Returns the value of attribute service_info.
Instance Method Summary collapse
-
#initialize(model) ⇒ TrustServiceAuthParameters
constructor
A new instance of TrustServiceAuthParameters.
Constructor Details
#initialize(model) ⇒ TrustServiceAuthParameters
Returns a new instance of TrustServiceAuthParameters.
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/pki_express/trust_service_auth_parameters.rb', line 6 def initialize(model) @service_info = nil @auth_url = nil unless model.nil? @auth_url = model.fetch(:authUrl) service_info = model.fetch(:serviceInfo) if service_info @service_info = TrustServiceInfo.new(service_info) end end end |
Instance Attribute Details
#auth_url ⇒ Object
Returns the value of attribute auth_url.
4 5 6 |
# File 'lib/pki_express/trust_service_auth_parameters.rb', line 4 def auth_url @auth_url end |
#service_info ⇒ Object
Returns the value of attribute service_info.
4 5 6 |
# File 'lib/pki_express/trust_service_auth_parameters.rb', line 4 def service_info @service_info end |