Class: Kashi::DSL::ContactGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/kashi/dsl/contact_group.rb

Defined Under Namespace

Classes: Result

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#resultObject (readonly)

Returns the value of attribute result.



7
8
9
# File 'lib/kashi/dsl/contact_group.rb', line 7

def result
  @result
end