Class: NPR::Entity::PromoArt
- Defined in:
- lib/npr/entity/promo_art.rb
Instance Attribute Summary collapse
-
#bookEditionId ⇒ Object
Returns the value of attribute bookEditionId.
Attributes inherited from Image
#hasBorder, #id, #link, #src, #type, #width
Instance Method Summary collapse
-
#initialize(json) ⇒ PromoArt
constructor
——————–.
Methods inherited from Image
Methods included from Concern::ShallowAttributes
Methods included from Concern::Relation
Constructor Details
#initialize(json) ⇒ PromoArt
11 12 13 14 |
# File 'lib/npr/entity/promo_art.rb', line 11 def initialize(json) @bookEditionId = json["bookEditionId"].to_i super end |
Instance Attribute Details
#bookEditionId ⇒ Object
Returns the value of attribute bookEditionId.
7 8 9 |
# File 'lib/npr/entity/promo_art.rb', line 7 def bookEditionId @bookEditionId end |