Class: Fabricio::Model::App

Inherits:
AbstractModel show all
Defined in:
lib/fabricio/models/app.rb

Overview

This model represents an application

Instance Attribute Summary collapse

Attributes inherited from AbstractModel

#json

Instance Method Summary collapse

Methods inherited from AbstractModel

#method_missing

Constructor Details

#initialize(attributes) ⇒ Fabricio::Model::App

Returns an App model object

Parameters:

  • attributes (Hash)


13
14
15
16
17
18
19
20
21
# File 'lib/fabricio/models/app.rb', line 13

def initialize(attributes)
  @id = attributes['id']
  @name = attributes['name']
  @bundle_id = attributes['bundle_identifier']
  @created_at = attributes['created_at']
  @platform = attributes['platform']
  @icon_url = attributes['icon_url']
  @json = attributes
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Fabricio::Model::AbstractModel

Instance Attribute Details

#bundle_idObject (readonly)

Returns the value of attribute bundle_id.



7
8
9
# File 'lib/fabricio/models/app.rb', line 7

def bundle_id
  @bundle_id
end

#created_atObject (readonly)

Returns the value of attribute created_at.



7
8
9
# File 'lib/fabricio/models/app.rb', line 7

def created_at
  @created_at
end

#icon_urlObject (readonly)

Returns the value of attribute icon_url.



7
8
9
# File 'lib/fabricio/models/app.rb', line 7

def icon_url
  @icon_url
end

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/fabricio/models/app.rb', line 7

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/fabricio/models/app.rb', line 7

def name
  @name
end

#platformObject (readonly)

Returns the value of attribute platform.



7
8
9
# File 'lib/fabricio/models/app.rb', line 7

def platform
  @platform
end