Class: PostProxy::Media

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#to_h

Constructor Details

#initialize(**attrs) ⇒ Media

Returns a new instance of Media.



90
91
92
93
94
95
# File 'lib/postproxy/types.rb', line 90

def initialize(**attrs)
  @error_message = nil
  @source_url = nil
  @url = nil
  super
end

Instance Attribute Details

#content_typeObject

Returns the value of attribute content_type.



88
89
90
# File 'lib/postproxy/types.rb', line 88

def content_type
  @content_type
end

#error_messageObject

Returns the value of attribute error_message.



88
89
90
# File 'lib/postproxy/types.rb', line 88

def error_message
  @error_message
end

#idObject

Returns the value of attribute id.



88
89
90
# File 'lib/postproxy/types.rb', line 88

def id
  @id
end

#source_urlObject

Returns the value of attribute source_url.



88
89
90
# File 'lib/postproxy/types.rb', line 88

def source_url
  @source_url
end

#statusObject

Returns the value of attribute status.



88
89
90
# File 'lib/postproxy/types.rb', line 88

def status
  @status
end

#urlObject

Returns the value of attribute url.



88
89
90
# File 'lib/postproxy/types.rb', line 88

def url
  @url
end