Class: Robads::Object
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Robads::Object
- Defined in:
- lib/robads/base.rb
Overview
The Robads::Object is a Hash with method accessors for all detected robads metadata attributes.
Constant Summary collapse
- REQUIRED_ATTRIBUTES =
%w(destination_url)
Instance Method Summary collapse
-
#valid? ⇒ Boolean
If the Robads information for this object doesn’t contain the required attributes, this will be
false
.
Instance Method Details
#valid? ⇒ Boolean
If the Robads information for this object doesn’t contain the required attributes, this will be false
.
52 53 54 55 |
# File 'lib/robads/base.rb', line 52 def valid? REQUIRED_ATTRIBUTES.each{|a| return false unless self[a]} true end |