Class: SimpleAcp::Models::Link
- Defined in:
- lib/simple_acp/models/metadata.rb
Overview
Link to external resources
Instance Method Summary collapse
Methods inherited from Base
#==, attribute, attributes, from_hash, #hash, #initialize, own_attributes, #to_h, #to_json
Constructor Details
This class inherits a constructor from SimpleAcp::Models::Base
Instance Method Details
#valid? ⇒ Boolean
57 58 59 |
# File 'lib/simple_acp/models/metadata.rb', line 57 def valid? Types::LinkType::ALL.include?(@type) && Types.valid_url?(@url) end |