Class: RCracy::Kcy
- Inherits:
-
Object
- Object
- RCracy::Kcy
- Defined in:
- lib/rcracy/kcy.rb
Instance Attribute Summary collapse
-
#award_desc ⇒ Object
readonly
Returns the value of attribute award_desc.
-
#award_id ⇒ Object
readonly
Returns the value of attribute award_id.
-
#award_img ⇒ Object
readonly
Returns the value of attribute award_img.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#kclicks ⇒ Object
readonly
Returns the value of attribute kclicks.
-
#long_url ⇒ Object
readonly
Returns the value of attribute long_url.
-
#others ⇒ Object
readonly
Returns the value of attribute others.
-
#short_url ⇒ Object
readonly
Returns the value of attribute short_url.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Kcy
constructor
A new instance of Kcy.
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_desc ⇒ Object (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_id ⇒ Object (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_img ⇒ Object (readonly)
Returns the value of attribute award_img.
5 6 7 |
# File 'lib/rcracy/kcy.rb', line 5 def award_img @award_img end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
5 6 7 |
# File 'lib/rcracy/kcy.rb', line 5 def date @date end |
#kclicks ⇒ Object (readonly)
Returns the value of attribute kclicks.
5 6 7 |
# File 'lib/rcracy/kcy.rb', line 5 def kclicks @kclicks end |
#long_url ⇒ Object (readonly)
Returns the value of attribute long_url.
5 6 7 |
# File 'lib/rcracy/kcy.rb', line 5 def long_url @long_url end |
#others ⇒ Object (readonly)
Returns the value of attribute others.
5 6 7 |
# File 'lib/rcracy/kcy.rb', line 5 def others @others end |
#short_url ⇒ Object (readonly)
Returns the value of attribute short_url.
5 6 7 |
# File 'lib/rcracy/kcy.rb', line 5 def short_url @short_url end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/rcracy/kcy.rb', line 5 def title @title end |