Class: NPR::Entity::MemberPromoArt

Inherits:
Base
  • Object
show all
Defined in:
lib/npr/entity/member_promo_art.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concern::ShallowAttributes

included

Methods included from Concern::Relation

included

Constructor Details

#initialize(json) ⇒ MemberPromoArt




11
12
13
14
# File 'lib/npr/entity/member_promo_art.rb', line 11

def initialize(json)
  @refId = json["refId"].to_i
  @num   = json["num"].to_i
end

Instance Attribute Details

#numObject

Returns the value of attribute num.



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

def num
  @num
end

#refIdObject

Returns the value of attribute refId.



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

def refId
  @refId
end