Class: NPR::Entity::MemberByline
- Defined in:
- lib/npr/entity/member_byline.rb
Instance Attribute Summary collapse
-
#num ⇒ Object
Returns the value of attribute num.
-
#refId ⇒ Object
Returns the value of attribute refId.
Instance Method Summary collapse
-
#initialize(json) ⇒ MemberByline
constructor
——————-.
Methods included from Concern::ShallowAttributes
Methods included from Concern::Relation
Constructor Details
#initialize(json) ⇒ MemberByline
11 12 13 14 |
# File 'lib/npr/entity/member_byline.rb', line 11 def initialize(json) @refId = json["refId"].to_i @num = json["num"].to_i end |
Instance Attribute Details
#num ⇒ Object
Returns the value of attribute num.
7 8 9 |
# File 'lib/npr/entity/member_byline.rb', line 7 def num @num end |
#refId ⇒ Object
Returns the value of attribute refId.
7 8 9 |
# File 'lib/npr/entity/member_byline.rb', line 7 def refId @refId end |