Class: RCracy::Kcy

Inherits:
Object
  • Object
show all
Defined in:
lib/rcracy/kcy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ Kcy

Returns a new instance of Kcy.



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/rcracy/kcy.rb', line 7

def initialize(attrs)

	@title      = attrs['title']
	@long_url   = attrs['longurl']
	@short_url  = attrs['shorturl']
	@kclicks    = attrs['kclicks']
	@date       = attrs['date']
	@award_id   = attrs['awardId']
	@award_img  = attrs['awardImg']
	@award_desc = attrs['awardDesc']
	@others     = attrs['others']
	
end

Instance Attribute Details

#award_descObject (readonly)

Returns the value of attribute award_desc.



5
6
7
# File 'lib/rcracy/kcy.rb', line 5

def award_desc
  @award_desc
end

#award_idObject (readonly)

Returns the value of attribute award_id.



5
6
7
# File 'lib/rcracy/kcy.rb', line 5

def award_id
  @award_id
end

#award_imgObject (readonly)

Returns the value of attribute award_img.



5
6
7
# File 'lib/rcracy/kcy.rb', line 5

def award_img
  @award_img
end

#dateObject (readonly)

Returns the value of attribute date.



5
6
7
# File 'lib/rcracy/kcy.rb', line 5

def date
  @date
end

#kclicksObject (readonly)

Returns the value of attribute kclicks.



5
6
7
# File 'lib/rcracy/kcy.rb', line 5

def kclicks
  @kclicks
end

#long_urlObject (readonly)

Returns the value of attribute long_url.



5
6
7
# File 'lib/rcracy/kcy.rb', line 5

def long_url
  @long_url
end

#othersObject (readonly)

Returns the value of attribute others.



5
6
7
# File 'lib/rcracy/kcy.rb', line 5

def others
  @others
end

#short_urlObject (readonly)

Returns the value of attribute short_url.



5
6
7
# File 'lib/rcracy/kcy.rb', line 5

def short_url
  @short_url
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/rcracy/kcy.rb', line 5

def title
  @title
end