Class: Spaceship::Provider

Inherits:
Object
  • Object
show all
Defined in:
spaceship/lib/spaceship/provider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typesObject

Returns the value of attribute content_types.



5
6
7
# File 'spaceship/lib/spaceship/provider.rb', line 5

def content_types
  @content_types
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'spaceship/lib/spaceship/provider.rb', line 4

def name
  @name
end

#provider_idObject

Returns the value of attribute provider_id.



3
4
5
# File 'spaceship/lib/spaceship/provider.rb', line 3

def provider_id
  @provider_id
end