Class: DailyDealr::Deal
- Inherits:
-
Object
- Object
- DailyDealr::Deal
- Defined in:
- lib/dailydealr.rb
Instance Attribute Summary collapse
-
#dealAmount ⇒ Object
readonly
Returns the value of attribute dealAmount.
-
#dealExpirationDateTime ⇒ Object
readonly
Returns the value of attribute dealExpirationDateTime.
-
#dealExpirationDateTimeZone ⇒ Object
readonly
Returns the value of attribute dealExpirationDateTimeZone.
-
#dealHeadline ⇒ Object
readonly
Returns the value of attribute dealHeadline.
-
#dealImageUrl ⇒ Object
readonly
Returns the value of attribute dealImageUrl.
-
#dealSource ⇒ Object
readonly
Returns the value of attribute dealSource.
-
#dealSourceUrl ⇒ Object
readonly
Returns the value of attribute dealSourceUrl.
-
#dealUrl ⇒ Object
readonly
Returns the value of attribute dealUrl.
-
#dealValue ⇒ Object
readonly
Returns the value of attribute dealValue.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Deal
constructor
A new instance of Deal.
Constructor Details
#initialize(options = {}) ⇒ Deal
Returns a new instance of Deal.
53 54 55 56 57 58 59 |
# File 'lib/dailydealr.rb', line 53 def initialize( = {}) .each do |k, v| if respond_to?(k.to_sym) send("#{k}=".to_sym, v) end end end |
Instance Attribute Details
#dealAmount ⇒ Object
Returns the value of attribute dealAmount.
50 51 52 |
# File 'lib/dailydealr.rb', line 50 def dealAmount @dealAmount end |
#dealExpirationDateTime ⇒ Object
Returns the value of attribute dealExpirationDateTime.
50 51 52 |
# File 'lib/dailydealr.rb', line 50 def dealExpirationDateTime @dealExpirationDateTime end |
#dealExpirationDateTimeZone ⇒ Object
Returns the value of attribute dealExpirationDateTimeZone.
50 51 52 |
# File 'lib/dailydealr.rb', line 50 def dealExpirationDateTimeZone @dealExpirationDateTimeZone end |
#dealHeadline ⇒ Object
Returns the value of attribute dealHeadline.
50 51 52 |
# File 'lib/dailydealr.rb', line 50 def dealHeadline @dealHeadline end |
#dealImageUrl ⇒ Object
Returns the value of attribute dealImageUrl.
50 51 52 |
# File 'lib/dailydealr.rb', line 50 def dealImageUrl @dealImageUrl end |
#dealSource ⇒ Object
Returns the value of attribute dealSource.
50 51 52 |
# File 'lib/dailydealr.rb', line 50 def dealSource @dealSource end |
#dealSourceUrl ⇒ Object
Returns the value of attribute dealSourceUrl.
50 51 52 |
# File 'lib/dailydealr.rb', line 50 def dealSourceUrl @dealSourceUrl end |
#dealUrl ⇒ Object
Returns the value of attribute dealUrl.
50 51 52 |
# File 'lib/dailydealr.rb', line 50 def dealUrl @dealUrl end |
#dealValue ⇒ Object
Returns the value of attribute dealValue.
50 51 52 |
# File 'lib/dailydealr.rb', line 50 def dealValue @dealValue end |