Class: Mxrb::Protocols::Entry

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#appstore_guidsObject (readonly)

Returns the value of attribute appstore_guids

Returns:

  • (Object)

    the current value of appstore_guids



17
18
19
# File 'lib/mxrb/protocols.rb', line 17

def appstore_guids
  @appstore_guids
end

#categoryObject (readonly)

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



17
18
19
# File 'lib/mxrb/protocols.rb', line 17

def category
  @category
end

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



17
18
19
# File 'lib/mxrb/protocols.rb', line 17

def content_type
  @content_type
end

#evidence_dateObject (readonly)

Returns the value of attribute evidence_date

Returns:

  • (Object)

    the current value of evidence_date



17
18
19
# File 'lib/mxrb/protocols.rb', line 17

def evidence_date
  @evidence_date
end

#marketplace_idObject (readonly)

Returns the value of attribute marketplace_id

Returns:

  • (Object)

    the current value of marketplace_id



17
18
19
# File 'lib/mxrb/protocols.rb', line 17

def marketplace_id
  @marketplace_id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



17
18
19
# File 'lib/mxrb/protocols.rb', line 17

def name
  @name
end

#protocolObject (readonly)

Returns the value of attribute protocol

Returns:

  • (Object)

    the current value of protocol



17
18
19
# File 'lib/mxrb/protocols.rb', line 17

def protocol
  @protocol
end

#publisherObject (readonly)

Returns the value of attribute publisher

Returns:

  • (Object)

    the current value of publisher



17
18
19
# File 'lib/mxrb/protocols.rb', line 17

def publisher
  @publisher
end

#source_urlObject (readonly)

Returns the value of attribute source_url

Returns:

  • (Object)

    the current value of 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

Returns:

  • (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