Class: NPR::Entity::Provider
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ Provider
constructor
—————-.
-
#to_s ⇒ Object
—————-.
Methods included from Concern::ShallowAttributes
Methods included from Concern::Relation
Constructor Details
#initialize(json) ⇒ Provider
11 12 13 14 |
# File 'lib/npr/entity/provider.rb', line 11 def initialize(json) @content = json["$text"] @url = json["url"] end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
7 8 9 |
# File 'lib/npr/entity/provider.rb', line 7 def content @content end |
#url ⇒ Object
Returns the value of attribute url.
7 8 9 |
# File 'lib/npr/entity/provider.rb', line 7 def url @url end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/npr/entity/provider.rb', line 18 def to_s @content.to_s end |