Exception: AdsCommon::Errors::MissingPropertyError
- Defined in:
- lib/ads_common/errors.rb
Overview
Raised if a required property on an object is missing.
Instance Attribute Summary collapse
-
#object_type ⇒ Object
readonly
Returns the value of attribute object_type.
-
#property ⇒ Object
readonly
Returns the value of attribute property.
Instance Method Summary collapse
-
#initialize(property, object_type) ⇒ MissingPropertyError
constructor
A new instance of MissingPropertyError.
- #to_s ⇒ Object
Constructor Details
#initialize(property, object_type) ⇒ MissingPropertyError
Returns a new instance of MissingPropertyError.
63 64 65 |
# File 'lib/ads_common/errors.rb', line 63 def initialize(property, object_type) @property, @object_type = property, object_type end |
Instance Attribute Details
#object_type ⇒ Object (readonly)
Returns the value of attribute object_type.
62 63 64 |
# File 'lib/ads_common/errors.rb', line 62 def object_type @object_type end |
#property ⇒ Object (readonly)
Returns the value of attribute property.
62 63 64 |
# File 'lib/ads_common/errors.rb', line 62 def property @property end |
Instance Method Details
#to_s ⇒ Object
66 67 68 |
# File 'lib/ads_common/errors.rb', line 66 def to_s() return "%s: name: %s, type: %s" % [super, @property, @object_type] end |