Class: Robads::Object

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

Instance Method Details

#valid?Boolean

If the Robads information for this object doesn’t contain the required attributes, this will be false.

Returns:

  • (Boolean)


52
53
54
55
# File 'lib/robads/base.rb', line 52

def valid?
  REQUIRED_ATTRIBUTES.each{|a| return false unless self[a]}
  true
end