Class: KCommercial::KCPipeline::KimModel

Inherits:
Object
  • Object
show all
Defined in:
lib/KCommercialPipeline/core/kim_notify.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg_type, file_path, content, image_url, mentioned_list = []) ⇒ KimModel

Returns a new instance of KimModel.



15
16
17
18
19
20
21
# File 'lib/KCommercialPipeline/core/kim_notify.rb', line 15

def initialize(msg_type,file_path,content,image_url,mentioned_list = [])
    @msg_type = msg_type
    @file_path = file_path
    @content = content
    @image_url = image_url
    @mentioned_list = mentioned_list
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



12
13
14
# File 'lib/KCommercialPipeline/core/kim_notify.rb', line 12

def content
  @content
end

#file_pathObject

Returns the value of attribute file_path.



11
12
13
# File 'lib/KCommercialPipeline/core/kim_notify.rb', line 11

def file_path
  @file_path
end

#image_urlObject

Returns the value of attribute image_url.



13
14
15
# File 'lib/KCommercialPipeline/core/kim_notify.rb', line 13

def image_url
  @image_url
end

#mentioned_listObject

Returns the value of attribute mentioned_list.



14
15
16
# File 'lib/KCommercialPipeline/core/kim_notify.rb', line 14

def mentioned_list
  @mentioned_list
end

#msg_typeObject

Returns the value of attribute msg_type.



10
11
12
# File 'lib/KCommercialPipeline/core/kim_notify.rb', line 10

def msg_type
  @msg_type
end