Class: Spaceship::Provider
- Inherits:
-
Object
- Object
- Spaceship::Provider
- Defined in:
- spaceship/lib/spaceship/provider.rb
Instance Attribute Summary collapse
-
#content_types ⇒ Object
Returns the value of attribute content_types.
-
#name ⇒ Object
Returns the value of attribute name.
-
#provider_id ⇒ Object
Returns the value of attribute provider_id.
Instance Method Summary collapse
-
#initialize(provider_hash: nil) ⇒ Provider
constructor
A new instance of Provider.
Constructor Details
#initialize(provider_hash: nil) ⇒ Provider
Returns a new instance of Provider.
7 8 9 10 11 |
# File 'spaceship/lib/spaceship/provider.rb', line 7 def initialize(provider_hash: nil) self.provider_id = provider_hash['providerId'] self.name = provider_hash['name'] self.content_types = provider_hash['contentTypes'] end |
Instance Attribute Details
#content_types ⇒ Object
Returns the value of attribute content_types.
5 6 7 |
# File 'spaceship/lib/spaceship/provider.rb', line 5 def content_types @content_types end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'spaceship/lib/spaceship/provider.rb', line 4 def name @name end |
#provider_id ⇒ Object
Returns the value of attribute provider_id.
3 4 5 |
# File 'spaceship/lib/spaceship/provider.rb', line 3 def provider_id @provider_id end |