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