Class: NPR::Entity::PullQuote
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(json) ⇒ PullQuote
constructor
A new instance of PullQuote.
Methods included from Concern::ShallowAttributes
Methods included from Concern::Relation
Constructor Details
#initialize(json) ⇒ PullQuote
Returns a new instance of PullQuote.
10 11 12 13 |
# File 'lib/npr/entity/pull_quote.rb', line 10 def initialize(json) extract_shallow_attributes(json) @id = json["id"].to_i end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/npr/entity/pull_quote.rb', line 7 def id @id end |