Class: Marver::Summary::Serie
- Inherits:
-
Object
- Object
- Marver::Summary::Serie
- Defined in:
- lib/marver/entities/summary/serie.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#resource_uri ⇒ Object
readonly
Returns the value of attribute resource_uri.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #full ⇒ Object
-
#initialize(json) ⇒ Serie
constructor
A new instance of Serie.
Constructor Details
#initialize(json) ⇒ Serie
Returns a new instance of Serie.
7 8 9 10 |
# File 'lib/marver/entities/summary/serie.rb', line 7 def initialize(json) @name = json['name'] @resource_uri = json['resourceURI'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/marver/entities/summary/serie.rb', line 5 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/marver/entities/summary/serie.rb', line 5 def name @name end |
#resource_uri ⇒ Object (readonly)
Returns the value of attribute resource_uri.
5 6 7 |
# File 'lib/marver/entities/summary/serie.rb', line 5 def resource_uri @resource_uri end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/marver/entities/summary/serie.rb', line 5 def type @type end |