Class: Jamef::Sender
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Jamef::Sender
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/jamef/sender.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Sender
constructor
A new instance of Sender.
- #validate_branch ⇒ Object
Constructor Details
#initialize(*args) ⇒ Sender
Returns a new instance of Sender.
16 17 18 19 20 |
# File 'lib/jamef/sender.rb', line 16 def initialize *args super raise ArgumentError, errors.first unless self.valid? self end |