Class: Mxrb::Protocols::Entry
- Inherits:
-
Data
- Object
- Data
- Mxrb::Protocols::Entry
- Defined in:
- lib/mxrb/protocols.rb
Overview
An immutable registry entry. Every entry must come from a real fixture, an official package, or verifiable official metadata. No identifier may be inferred from a name.
marketplace_id is the public Mendix Marketplace component id. The
per-project AppStoreGuid embedded in an .mpr is only known once a real
project imports the connector, so appstore_guids stays empty until a
verified fixture provides it; GUID-based detection then fails closed.
Instance Attribute Summary collapse
-
#appstore_guids ⇒ Object
readonly
Returns the value of attribute appstore_guids.
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#evidence_date ⇒ Object
readonly
Returns the value of attribute evidence_date.
-
#marketplace_id ⇒ Object
readonly
Returns the value of attribute marketplace_id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
-
#publisher ⇒ Object
readonly
Returns the value of attribute publisher.
-
#source_url ⇒ Object
readonly
Returns the value of attribute source_url.
Instance Method Summary collapse
Instance Attribute Details
#appstore_guids ⇒ Object (readonly)
Returns the value of attribute appstore_guids
17 18 19 |
# File 'lib/mxrb/protocols.rb', line 17 def appstore_guids @appstore_guids end |
#category ⇒ Object (readonly)
Returns the value of attribute category
17 18 19 |
# File 'lib/mxrb/protocols.rb', line 17 def category @category end |
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type
17 18 19 |
# File 'lib/mxrb/protocols.rb', line 17 def content_type @content_type end |
#evidence_date ⇒ Object (readonly)
Returns the value of attribute evidence_date
17 18 19 |
# File 'lib/mxrb/protocols.rb', line 17 def evidence_date @evidence_date end |
#marketplace_id ⇒ Object (readonly)
Returns the value of attribute marketplace_id
17 18 19 |
# File 'lib/mxrb/protocols.rb', line 17 def marketplace_id @marketplace_id end |
#name ⇒ Object (readonly)
Returns the value of attribute name
17 18 19 |
# File 'lib/mxrb/protocols.rb', line 17 def name @name end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol
17 18 19 |
# File 'lib/mxrb/protocols.rb', line 17 def protocol @protocol end |
#publisher ⇒ Object (readonly)
Returns the value of attribute publisher
17 18 19 |
# File 'lib/mxrb/protocols.rb', line 17 def publisher @publisher end |
#source_url ⇒ Object (readonly)
Returns the value of attribute source_url
17 18 19 |
# File 'lib/mxrb/protocols.rb', line 17 def source_url @source_url end |
Instance Method Details
#matches_guid?(guid) ⇒ Boolean
21 22 23 24 |
# File 'lib/mxrb/protocols.rb', line 21 def matches_guid?(guid) key = guid.to_s !key.empty? && appstore_guids.include?(key) end |