Class: NPR::Entity::PromoArt

Inherits:
Image show all
Defined in:
lib/npr/entity/promo_art.rb

Instance Attribute Summary collapse

Attributes inherited from Image

#hasBorder, #id, #link, #src, #type, #width

Instance Method Summary collapse

Methods inherited from Image

#crop, #primary?, #standard?

Methods included from Concern::ShallowAttributes

included

Methods included from Concern::Relation

included

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

#bookEditionIdObject

Returns the value of attribute bookEditionId.



7
8
9
# File 'lib/npr/entity/promo_art.rb', line 7

def bookEditionId
  @bookEditionId
end