Class: Kashi::DSL::ContactGroup
- Inherits:
-
Object
- Object
- Kashi::DSL::ContactGroup
- Defined in:
- lib/kashi/dsl/contact_group.rb
Defined Under Namespace
Classes: Result
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, contact_id, &block) ⇒ ContactGroup
constructor
A new instance of ContactGroup.
Constructor Details
#initialize(context, contact_id, &block) ⇒ ContactGroup
Returns a new instance of ContactGroup.
85 86 87 88 89 90 91 92 |
# File 'lib/kashi/dsl/contact_group.rb', line 85 def initialize(context, contact_id, &block) @context = context.merge(contact_id: contact_id) @result = Result.new(@context) @result.contact_id = contact_id instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
7 8 9 |
# File 'lib/kashi/dsl/contact_group.rb', line 7 def result @result end |